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>
Wed, 16 Apr 2014 20:15:25 +0000 (14:15 -0600)
commit70f4db639c5b2479e08657392cbf3ba3cceea11c
tree58a5acc839c2d0dd73436fcd6a95c8fe50bbccff
parent1b4a325858f695a9b5041313602d34b36f463724
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