blk-mq: don't restart queue when .get_budget returns BLK_STS_RESOURCE
authorMing Lei <ming.lei@redhat.com>
Fri, 27 Oct 2017 04:43:30 +0000 (12:43 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Nov 2017 14:20:34 +0000 (08:20 -0600)
commit1f460b63d4b37f504d8d0affc2cd492eb005ea97
tree829611af2a709a83ac018bf6c1d083e2fde02659
parent358a3a6bccb74da9d63a26b2dd5f09f1e9970e0b
blk-mq: don't restart queue when .get_budget returns BLK_STS_RESOURCE

SCSI restarts its queue in scsi_end_request() automatically, so we don't
need to handle this case in blk-mq.

Especailly any request won't be dequeued in this case, we needn't to
worry about IO hang caused by restart vs. dispatch.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-sched.c
block/blk-mq-sched.h
block/blk-mq.c