Douglas Anderson ab3cee3762 blk-mq: In blk_mq_dispatch_rq_list() "no budget" is a reason to kick
In blk_mq_dispatch_rq_list(), if blk_mq_sched_needs_restart() returns
true and the driver returns BLK_STS_RESOURCE then we'll kick the
queue.  However, there's another case where we might need to kick it.
If we were unable to get budget we can be in much the same state as
when the driver returns BLK_STS_RESOURCE, so we should treat it the
same.

It should be noted that even if we add a whole bunch of extra kicking
to the queue in other patches this patch is still important.
Specifically any kicking that happened before we re-spliced leftover
requests into 'hctx->dispatch' wouldn't have found any work, so we
really need to make sure we kick ourselves after we've done the
splicing.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-04-20 10:34:56 -06:00
..
2020-03-27 12:04:34 -06:00
2020-03-30 11:20:13 -07:00
2020-03-27 12:04:34 -06:00
2019-07-09 10:45:06 -07:00
2020-03-17 20:55:21 +01:00
2020-03-30 11:43:51 -07:00
2019-10-07 21:19:10 -06:00
2020-03-30 11:43:51 -07:00
2020-03-27 12:04:34 -06:00
2020-01-03 09:33:21 +01:00
2020-03-30 11:20:13 -07:00
2019-07-15 09:20:27 -03:00
2020-01-06 20:59:04 -07:00
2020-01-06 20:59:04 -07:00