]> git.baikalelectronics.ru Git - kernel.git/commit
block: add QUEUE_FLAG_NOWAIT
authorMike Snitzer <snitzer@redhat.com>
Wed, 23 Sep 2020 20:06:51 +0000 (16:06 -0400)
committerJens Axboe <axboe@kernel.dk>
Fri, 25 Sep 2020 14:20:03 +0000 (08:20 -0600)
commit7bc47b587d7861ff120afc4bda0a0c581060eb4a
tree14e5d8d9a110a92135fcb31457a906ca2e85cac3
parent9033819bde8f383db810dc84a1c49ca45a863316
block: add QUEUE_FLAG_NOWAIT

Add QUEUE_FLAG_NOWAIT to allow a block device to advertise support for
REQ_NOWAIT. Bio-based devices may set QUEUE_FLAG_NOWAIT where
applicable.

Update QUEUE_FLAG_MQ_DEFAULT to include QUEUE_FLAG_NOWAIT.  Also
update submit_bio_checks() to verify it is set for REQ_NOWAIT bios.

Reported-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
include/linux/blkdev.h