]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: don't block on the ilock for RWF_NOWAIT
authorChristoph Hellwig <hch@lst.de>
Thu, 1 Mar 2018 22:12:45 +0000 (14:12 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 1 Mar 2018 22:12:45 +0000 (14:12 -0800)
commit67742c9810cd65c2b1c9d1c9dd8295dfbcfe8048
tree14585938c73fbce45ff05877544aaab6e2c17503
parent0eec901ac798e79a2ab4016595eba354e233b6d4
xfs: don't block on the ilock for RWF_NOWAIT

Fix xfs_file_iomap_begin to trylock the ilock if IOMAP_NOWAIT is passed,
so that we don't block io_submit callers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_iomap.c