summaryrefslogtreecommitdiffstats
path: root/block/blk-mq.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-07-06 09:03:37 +0200
committerJens Axboe <axboe@kernel.dk>2022-07-06 06:46:25 -0600
commitedd1dbc83b1de3b98590b76e09b86ddf6887fce7 (patch)
treef6362103f2356fe4e6a0095e0363dfcbc2ff266e /block/blk-mq.h
parent6cc37a672a1e21245b931722a016b3bd4ae10e2d (diff)
downloadlinux-stable-edd1dbc83b1de3b98590b76e09b86ddf6887fce7.tar.gz
linux-stable-edd1dbc83b1de3b98590b76e09b86ddf6887fce7.tar.bz2
linux-stable-edd1dbc83b1de3b98590b76e09b86ddf6887fce7.zip
block: use bdev_is_zoned instead of open coding it
Use bdev_is_zoned in all places where a block_device is available instead of open coding it. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Link: https://lore.kernel.org/r/20220706070350.1703384-4-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.h')
-rw-r--r--block/blk-mq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq.h b/block/blk-mq.h
index 54e20edf0da3..31d75a83a562 100644
--- a/block/blk-mq.h
+++ b/block/blk-mq.h
@@ -317,7 +317,7 @@ static inline struct blk_plug *blk_mq_plug(struct request_queue *q,
* For regular block devices or read operations, use the context plug
* which may be NULL if blk_start_plug() was not executed.
*/
- if (!blk_queue_is_zoned(q) || !op_is_write(bio_op(bio)))
+ if (!bdev_is_zoned(bio->bi_bdev) || !op_is_write(bio_op(bio)))
return current->plug;
/* Zoned block device write operation case: do not plug the BIO */