OSDN Git Service

xfs: fix IOCB_NOWAIT handling in xfs_file_dio_aio_read
authorChristoph Hellwig <hch@lst.de>
Wed, 15 Jan 2020 17:11:17 +0000 (09:11 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 16 Jan 2020 06:13:11 +0000 (22:13 -0800)
commit7b53b868a1812a9a6ab5e69249394bd37f29ce2c
tree74c8def00ecd0a67f1fb645e1c6001f728e0b8a3
parentca78eee7b4ac13b63f5e872f7c3a5ca66b2df8da
xfs: fix IOCB_NOWAIT handling in xfs_file_dio_aio_read

Direct I/O reads can also be used with RWF_NOWAIT & co.  Fix the inode
locking in xfs_file_dio_aio_read to take IOCB_NOWAIT into account.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_file.c