diff options
author | Olof Johansson <olof@lixom.net> | 2013-09-09 19:34:23 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-09 19:47:42 +0200 |
commit | 45150c43b1b0c16e665fd0a5cdcca128b8192db1 (patch) | |
tree | e1faec166f3edb5974829d9f7ec4c25e02fd1572 /fs/namei.c | |
parent | Merge tag 'for-linus-20130909' of git://git.infradead.org/linux-mtd (diff) | |
download | linux-45150c43b1b0c16e665fd0a5cdcca128b8192db1.tar.xz linux-45150c43b1b0c16e665fd0a5cdcca128b8192db1.zip |
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 <olof@lixom.net>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: H Peter Anvin <hpa@zytor.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/namei.c')
0 files changed, 0 insertions, 0 deletions