]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: use blk_queue_nowait() to check if NOWAIT supported
authorJeffle Xu <jefflexu@linux.alibaba.com>
Mon, 19 Oct 2020 08:59:42 +0000 (16:59 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 19 Oct 2020 13:32:36 +0000 (07:32 -0600)
commit89d240387180f63772f787e78e4f6eefb30bcd47
tree0e3852adfa378d06319c0e1c192016bb7cbe95aa
parentb8db4d2d2a0de322e44e01c07534c3ed92316e19
io_uring: use blk_queue_nowait() to check if NOWAIT supported

commit 29bdb12aae07 ("block: add QUEUE_FLAG_NOWAIT") adds a new helper
function blk_queue_nowait() to check if the bdev supports handling of
REQ_NOWAIT or not. Since then bio-based dm device can also support
REQ_NOWAIT, and currently only dm-linear supports that since
commit 5d6403535785 ("dm: add support for REQ_NOWAIT and enable it for
linear target").

Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c