block: blk-mq: make blk_sync_queue support mq
authorMing Lei <tom.leiming@gmail.com>
Thu, 26 Dec 2013 13:31:36 +0000 (21:31 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 31 Dec 2013 16:53:05 +0000 (09:53 -0700)
commitf04c1fe7619b2a60ee9e209cf3f9fcba2ce8f2a2
tree3b5dbe682ca8cd87b466104457d3a25d0f431d2b
parent43a5e4e21964a6efb4d14a34644ec7109d0ae891
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