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)
commit1c2d2fff6dc04662dc8e86b537989643e1abeed9
treee2e79736a49498ed98d4a9d3ddf612d7271ea7d3
parentee692a21e9bf8354bd3ec816f1cf4bff8619ed77
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