projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c22d9d8
)
blk-mq: idle all hardware contexts before freeing a queue
author
Christoph Hellwig
<hch@lst.de>
Mon, 26 May 2014 09:45:02 +0000
(11:45 +0200)
committer
Jens Axboe
<axboe@fb.com>
Mon, 26 May 2014 23:21:51 +0000
(17:21 -0600)
Without this we can leak the active_queues reference if a command is
freed while it is considered active.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c
patch
|
blob
|
history
diff --git
a/block/blk-mq.c
b/block/blk-mq.c
index 9bc075335d065ebb59fc5c9b40284602dd98465c..62082c5daae7cbafbfdb294fdee70c38a5c90257 100644
(file)
--- a/
block/blk-mq.c
+++ b/
block/blk-mq.c
@@
-1844,6
+1844,7
@@
void blk_mq_free_queue(struct request_queue *q)
blk_mq_del_queue_tag_set(q);
queue_for_each_hw_ctx(q, hctx, i) {
+ blk_mq_tag_idle(hctx);
kfree(hctx->ctxs);
blk_mq_unregister_cpu_notifier(&hctx->cpu_notifier);
if (q->mq_ops->exit_hctx)