From 45150c43b1b0c16e665fd0a5cdcca128b8192db1 Mon Sep 17 00:00:00 2001 From: Olof Johansson Date: Mon, 9 Sep 2013 10:34:23 -0700 Subject: [PATCH] direct-io: Use return from cmpxchg to decide of assignment happened Not using the return value can in the generic case be racy, so it's in general good practice to check the return value instead. This also resolved the warning caused on ARM and other architectures: fs/direct-io.c: In function 'sb_init_dio_done_wq': fs/direct-io.c:557:2: warning: value computed is not used [-Wunused-value] Signed-off-by: Olof Johansson Reviewed-by: Jan Kara Cc: Geert Uytterhoeven Cc: Stephen Rothwell Cc: Al Viro Cc: Christoph Hellwig Cc: Russell King Cc: H Peter Anvin Signed-off-by: Linus Torvalds --- Reading git-format-patch failed