blk-mq: Avoid that blk_mq_delay_run_hw_queue() introduces unintended delays
authorBart Van Assche <bart.vanassche@wdc.com>
Fri, 19 Jan 2018 16:58:55 +0000 (08:58 -0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 19 Jan 2018 19:52:01 +0000 (12:52 -0700)
commitae943d20624de0a6aac7dd0597616dce2c498029
tree9fa3d4d76dbfce384e11f6119a44f16885c20fdb
parentc77ff7fd03ddca8face268c4cf093c0edf4bcf1f
blk-mq: Avoid that blk_mq_delay_run_hw_queue() introduces unintended delays

Make sure that calling blk_mq_run_hw_queue() or
blk_mq_kick_requeue_list() triggers a queue run without delay even
if blk_mq_delay_run_hw_queue() has been called recently and if its
delay has not yet expired.

Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c