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)
committerChristoph Hellwig <hch@lst.de>
Thu, 25 Nov 2021 14:02:40 +0000 (15:02 +0100)
commitc024b226a417c4eb9353ff500b1c823165d4d508
tree5feb569e063727fad482e9faf6ea4401b449166a
parent00b33cf3da726757aef636365bb52e9536434e9a
nvmet: use IOCB_NOWAIT only if the filesystem supports it

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>
drivers/nvme/target/io-cmd-file.c