]> git.baikalelectronics.ru Git - kernel.git/commit
block: wire-up support for passthrough plugging
authorJens Axboe <axboe@kernel.dk>
Wed, 11 May 2022 05:47:46 +0000 (11:17 +0530)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 May 2022 13:40:58 +0000 (07:40 -0600)
commitfd3be3118b1fef03f20e2da99d8bd761e3490f00
treee2e79736a49498ed98d4a9d3ddf612d7271ea7d3
parentd795bbeb06e522fb67a3f03d4797fc03d99cf7f5
block: wire-up support for passthrough plugging

Add support for plugging in passthrough path. When plugging is enabled, the
requests are added to a plug instead of getting dispatched to the driver.
And when the plug is finished, the whole batch gets dispatched via
->queue_rqs which turns out to be more efficient. Otherwise dispatching
used to happen via ->queue_rq, one request at a time.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220511054750.20432-3-joshi.k@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c