fs: support RWF_NOWAIT for buffered reads
authorChristoph Hellwig <hch@lst.de>
Tue, 29 Aug 2017 14:13:20 +0000 (16:13 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 Sep 2017 23:04:23 +0000 (19:04 -0400)
commit91f9943e1c7b6638f27312d03fe71fcc67b23571
treebf9c2212d93f4fbf9af6f5fafc2e667fa3d29de1
parent3239d834847627b6634a4139cf1dc58f6f137a46
fs: support RWF_NOWAIT for buffered reads

This is based on the old idea and code from Milosz Tanski.  With the aio
nowait code it becomes mostly trivial now.  Buffered writes continue to
return -EOPNOTSUPP if RWF_NOWAIT is passed.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/aio.c
fs/btrfs/file.c
fs/ext4/file.c
fs/xfs/xfs_file.c
include/linux/fs.h