block: blk_delay_queue() should use kblockd workqueue

Reported-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
This commit is contained in:
Jens Axboe 2011-04-18 11:36:39 +02:00
parent c3b328ac84
commit 4521cc4ed5

View File

@ -220,7 +220,8 @@ static void blk_delay_work(struct work_struct *work)
*/ */
void blk_delay_queue(struct request_queue *q, unsigned long msecs) void blk_delay_queue(struct request_queue *q, unsigned long msecs)
{ {
schedule_delayed_work(&q->delay_work, msecs_to_jiffies(msecs)); queue_delayed_work(kblockd_workqueue, &q->delay_work,
msecs_to_jiffies(msecs));
} }
EXPORT_SYMBOL(blk_delay_queue); EXPORT_SYMBOL(blk_delay_queue);