nvmet: use IOCB_NOWAIT only if the filesystem supports it
authorMaurizio Lombardi <mlombard@redhat.com>
Mon, 22 Nov 2021 10:08:27 +0000 (11:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Dec 2021 08:04:52 +0000 (09:04 +0100)
commit5585036815e54e380293b73050262cb62ec10d0c
tree31998f46359772b90e2ebaccc9258c5028f55a27
parenta93af38c9f47df2109dfda94b8b66b49c14a94ef
nvmet: use IOCB_NOWAIT only if the filesystem supports it

[ Upstream commit c024b226a417c4eb9353ff500b1c823165d4d508 ]

Submit I/O requests with the IOCB_NOWAIT flag set only if
the underlying filesystem supports it.

Fixes: 50a909db36f2 ("nvmet: use IOCB_NOWAIT for file-ns buffered I/O")
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/target/io-cmd-file.c