Skip to content

Commit

Permalink
blk-mq: only flush requests from the plug in blk_mq_submit_bio
Browse files Browse the repository at this point in the history
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 <hch@lst.de>
Link: https://lore.kernel.org/r/20211020144119.142582-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Christoph Hellwig authored and Jens Axboe committed Oct 20, 2021
1 parent 037057a commit a214b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/blk-mq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit a214b94

Please sign in to comment.