]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix IOCB_NOWAIT handling in xfs_file_dio_aio_read
authorChristoph Hellwig <hch@lst.de>
Wed, 5 Oct 2022 07:00:59 +0000 (12:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Oct 2022 07:16:56 +0000 (09:16 +0200)
commit9cd74a837d793f011386d012f4421a15b3f8644c
tree7d064db0558d420842223958806da7bc5a81cebe
parent44e23ef2ec72bfbca5d8026642061f91685c268a
xfs: fix IOCB_NOWAIT handling in xfs_file_dio_aio_read

commit f83422f4c5acf12a1a9eac58c4974825ca765650 upstream.

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>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_file.c