From: Christoph Hellwig Date: Wed, 20 Oct 2021 14:41:16 +0000 (+0200) Subject: blk-mq: only flush requests from the plug in blk_mq_submit_bio X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a214b949d8e365583dd67441f6f608f0b20f7f52;p=linux.git blk-mq: only flush requests from the plug in blk_mq_submit_bio Replace the call to blk_flush_plug_list in blk_mq_submit_bio with a direct call to blk_mq_flush_plug_list. This means we do not flush plug callback from stackable devices, which doesn't really help with the accumulated requests anyway, and it also means the cached requests aren't freed here as they can still be used later on. Signed-off-by: Christoph Hellwig Link: https://lore.kernel.org/r/20211020144119.142582-2-hch@lst.de Signed-off-by: Jens Axboe --- diff --git a/block/blk-mq.c b/block/blk-mq.c index a71aeed7b9870..101466ece4c4f 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -2568,7 +2568,7 @@ void blk_mq_submit_bio(struct bio *bio) } if (request_count >= blk_plug_max_rq_count(plug) || last) { - blk_flush_plug_list(plug, false); + blk_mq_flush_plug_list(plug, false); trace_block_plug(q); }