summaryrefslogtreecommitdiff
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-07-06 09:03:38 +0200
committerJens Axboe <axboe@kernel.dk>2022-07-06 06:46:25 -0600
commit6deacb3bfac2b720e707c566549a7041f17db9c8 (patch)
tree54decf2da049481ffceed99c6a50542a0d5eb319 /block/blk-mq.c
parentedd1dbc83b1de3b98590b76e09b86ddf6887fce7 (diff)
downloadlwn-6deacb3bfac2b720e707c566549a7041f17db9c8.tar.gz
lwn-6deacb3bfac2b720e707c566549a7041f17db9c8.zip
block: simplify blk_mq_plug
Drop the unused q argument, and invert the check to move the exception into a branch and the regular path as the normal return. 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-5-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r--block/blk-mq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 63385742b8a8..f1b84e20b1a9 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -2808,7 +2808,7 @@ static void bio_set_ioprio(struct bio *bio)
void blk_mq_submit_bio(struct bio *bio)
{
struct request_queue *q = bdev_get_queue(bio->bi_bdev);
- struct blk_plug *plug = blk_mq_plug(q, bio);
+ struct blk_plug *plug = blk_mq_plug(bio);
const int is_sync = op_is_sync(bio->bi_opf);
struct request *rq;
unsigned int nr_segs = 1;