diff options
author | Christoph Hellwig <hch@lst.de> | 2022-07-06 10:03:38 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-07-06 15:46:25 +0300 |
commit | 6deacb3bfac2b720e707c566549a7041f17db9c8 (patch) | |
tree | 54decf2da049481ffceed99c6a50542a0d5eb319 /block/blk-mq.c | |
parent | edd1dbc83b1de3b98590b76e09b86ddf6887fce7 (diff) | |
download | linux-6deacb3bfac2b720e707c566549a7041f17db9c8.tar.xz |
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.c | 2 |
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; |