blk-mq: add blk_mq_delay_queue
authorChristoph Hellwig <hch@lst.de>
Wed, 16 Apr 2014 16:48:08 +0000 (10:48 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:45 +0000 (12:54 -0600)
commit455a631edbc215d787c5a0deb2ea05b2f84ed31b
tree352af241efa9aeffd05e2adc7ddc88d400f288bd
parent72dab06841484881f0b316c8d407c5d03d7f8d09
blk-mq: add blk_mq_delay_queue

Add a blk-mq equivalent to blk_delay_queue so that the scsi layer can ask
to be kicked again after a delay.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Modified by me to kill the unnecessary preempt disable/enable
in the delayed workqueue handler.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-core.c
block/blk-mq.c
include/linux/blk-mq.h