diff options
author | Christoph Hellwig <hch@lst.de> | 2022-09-27 09:58:15 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-09-27 17:57:58 +0200 |
commit | 568ec936bf1384fc15873908c96a9aeb62536edb (patch) | |
tree | b5c44f608ddeb3f82bcd09a92be1acdbfb849bd7 /block | |
parent | blk-cgroup: pass a gendisk to the blkg allocation helpers (diff) | |
download | linux-568ec936bf1384fc15873908c96a9aeb62536edb.tar.xz linux-568ec936bf1384fc15873908c96a9aeb62536edb.zip |
block: replace blk_queue_nowait with bdev_nowait
Replace blk_queue_nowait with a bdev_nowait helpers that takes the
block_device given that the I/O submission path should not have to
look into the request_queue.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Pankaj Raghav <p.raghav@samsung.com>
Link: https://lore.kernel.org/r/20220927075815.269694-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 052444c9b594..dc1fa454ae30 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -713,7 +713,7 @@ void submit_bio_noacct(struct bio *bio) * For a REQ_NOWAIT based request, return -EOPNOTSUPP * if queue does not support NOWAIT. */ - if ((bio->bi_opf & REQ_NOWAIT) && !blk_queue_nowait(q)) + if ((bio->bi_opf & REQ_NOWAIT) && !bdev_nowait(bdev)) goto not_supported; if (should_fail_bio(bio)) |