Skip to content
Commit 7e79dadc authored by Jens Axboe's avatar Jens Axboe
Browse files

blk-mq: stop hardware queue in blk_mq_delay_queue()



The run handler we register for the delayed work requires that the
queue be stopped, yet we leave that up to the caller. Let's move
it into blk_mq_delay_queue() itself, so that the API is sane.

This fixes a stall with SCSI, where it calls blk_mq_delay_queue()
without having stopped the queue. Hence the queue is never run.

Reported-by: default avatarHannes Reinecke <hare@suse.com>
Fixes: 70f4db63

 ("blk-mq: add blk_mq_delay_queue")
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 8cecb07d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment