]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: pass obtained budget count to blk_mq_dispatch_rq_list
authorMing Lei <ming.lei@redhat.com>
Tue, 30 Jun 2020 10:25:00 +0000 (18:25 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 30 Jun 2020 13:51:48 +0000 (07:51 -0600)
commitf887156589b849bfd6d8b19f4d5f05961e8c8e14
tree2761c53ceccc77cce9905edb698204dac746fa4f
parent63532b95dc2467a4aba6dccc48c0562ec9d68d30
blk-mq: pass obtained budget count to blk_mq_dispatch_rq_list

Pass obtained budget count to blk_mq_dispatch_rq_list(), and prepare
for supporting fully batching submission.

With the obtained budget count, it is easier to put extra budgets
in case of .queue_rq failure.

Meantime remove the old 'got_budget' parameter.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Tested-by: Baolin Wang <baolin.wang7@gmail.com>
Reviewed-by: Christoph Hellwig <hch@infradead.org>
Cc: Sagi Grimberg <sagi@grimberg.me>
Cc: Baolin Wang <baolin.wang7@gmail.com>
Cc: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-sched.c
block/blk-mq.c
block/blk-mq.h