]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf83422f4c5acf12a1a9eac58c4974825ca765650
tree74c8def00ecd0a67f1fb645e1c6001f728e0b8a3
parent04c4489e8e81e4c0a72dd3e80c8bfcf09ac1986e
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