block: factor out blk_mq_dispatch_queue_requests() helper
authorCaleb Sander Mateos <csander@purestorage.com>
Sat, 26 Apr 2025 01:17:27 +0000 (19:17 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 2 May 2025 15:21:08 +0000 (09:21 -0600)
commita5728a1d1ef2d927c67e73fda94946c2c15106df
tree48f9b83480e65e7ac77426f2c1b17be193acc51e
parent0aeb7ebfc7e3d4bef3542aadd33505452d2f9b82
block: factor out blk_mq_dispatch_queue_requests() helper

Factor out the logic from blk_mq_flush_plug_list() that calls
->queue_rqs() with a fallback to ->queue_rq() into a helper function
blk_mq_dispatch_queue_requests(). This is in preparation for using this
code with other lists of requests.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20250426011728.4189119-3-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c