blk-mq: factor out a blk_mq_get_budget_and_tag helper
authorChristoph Hellwig <hch@lst.de>
Thu, 13 Apr 2023 06:40:49 +0000 (08:40 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 13 Apr 2023 12:52:30 +0000 (06:52 -0600)
commit2b71b8770710f2913e29053f01b6c7df1a5c7f75
tree12a45d91679cad92fa2d29658e398e377d48c7c7
parenta1e948b81ad21d635b99c1284f945423cb02b4c4
blk-mq: factor out a blk_mq_get_budget_and_tag helper

Factor out a helper from __blk_mq_try_issue_directly in preparation
of folding that function into its two callers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20230413064057.707578-13-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c