mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
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>
This commit is contained in:
committed by
Jens Axboe
parent
edd1dbc83b
commit
6deacb3bfa
@@ -719,7 +719,7 @@ void submit_bio_noacct(struct bio *bio)
|
||||
|
||||
might_sleep();
|
||||
|
||||
plug = blk_mq_plug(q, bio);
|
||||
plug = blk_mq_plug(bio);
|
||||
if (plug && plug->nowait)
|
||||
bio->bi_opf |= REQ_NOWAIT;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user