aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-06-04 11:11:53 -0400
committerJens Axboe <axboe@fb.com>2014-06-04 11:11:53 -0400
commitf899fed4421d6b098ed6a9d69303c70e590bf2c0 (patch)
tree0a0264c0cd6169aa900f6de1f44fbc0f6c7ddd9d /block
parentff87bcec197774f938fbd1fe996068005f3dfb3c (diff)
blk-mq: fix regression from commit 624dbe475416
When the code was collapsed to avoid duplication, the recent patch for ensuring that a queue is idled before free was dropped, which was added by commit 19c5d84f14d2. Add back the blk_mq_tag_idle(), to ensure we don't leak a reference to an active queue when it is freed. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
-rw-r--r--block/blk-mq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 96e6eb638f00..4e8e8cf00815 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1552,6 +1552,8 @@ static void blk_mq_exit_hw_queues(struct request_queue *q,
1552 if (i == nr_queue) 1552 if (i == nr_queue)
1553 break; 1553 break;
1554 1554
1555 blk_mq_tag_idle(hctx);
1556
1555 if (set->ops->exit_hctx) 1557 if (set->ops->exit_hctx)
1556 set->ops->exit_hctx(hctx, i); 1558 set->ops->exit_hctx(hctx, i);
1557 1559