block: blk-mq: make blk_sync_queue support mq
authorMing Lei <tom.leiming@gmail.com>
Fri, 24 Jan 2014 21:15:37 +0000 (13:15 -0800)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:40 +0000 (12:54 -0600)
commitbfac96161147f599510e4788e0719f346fb585a2
tree55535805a31e4e307a055a1fbcae6012a5dfb299
parente65ebc03ae62f9cd980bf84320585e0b47b85dd9
block: blk-mq: make blk_sync_queue support mq

This patch moves synchronization on mq->delay_work
from blk_mq_free_queue() to blk_sync_queue(), so that
blk_sync_queue can work on mq.

Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-mq.c