diff options
author | Ming Lei <tom.leiming@gmail.com> | 2013-12-26 14:31:36 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-12-31 17:53:05 +0100 |
commit | f04c1fe7619b2a60ee9e209cf3f9fcba2ce8f2a2 (patch) | |
tree | 3b5dbe682ca8cd87b466104457d3a25d0f431d2b /block/blk-mq.c | |
parent | block: blk-mq: support draining mq queue (diff) | |
download | linux-f04c1fe7619b2a60ee9e209cf3f9fcba2ce8f2a2.tar.xz linux-f04c1fe7619b2a60ee9e209cf3f9fcba2ce8f2a2.zip |
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>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index e2f811cba417..edbd2536f942 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1440,7 +1440,6 @@ void blk_mq_free_queue(struct request_queue *q) int i; queue_for_each_hw_ctx(q, hctx, i) { - cancel_delayed_work_sync(&hctx->delayed_work); kfree(hctx->ctx_map); kfree(hctx->ctxs); blk_mq_free_rq_map(hctx); |