block: mark bdev files as FMODE_NOWAIT if underlying device supports it
authorJens Axboe <axboe@kernel.dk>
Tue, 9 May 2023 15:19:09 +0000 (09:19 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 May 2023 16:12:27 +0000 (10:12 -0600)
commite9833d8701028b5dd62895e68f4a280aad359172
tree209ba6abb605902a617cec187e9e1ad0ab0c31fa
parentfe34db062b8036f72e97c2b9eaa7e9fbb725ead2
block: mark bdev files as FMODE_NOWAIT if underlying device supports it

We set this unconditionally, but it really should be dependent on if
the underlying device is nowait compliant.

Cc: linux-block@vger.kernel.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230509151910.183637-3-axboe@kernel.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/fops.c