aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd/commit.c
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2013-12-26 21:31:37 +0800
committerLinus Torvalds <[email protected]>2014-01-12 16:22:42 +0700
commit518d00b7498c5894be94545848d55e5b9c55749e (patch)
tree841f92409aca75ab2eadea1955d96c33b107395a /fs/jbd/commit.c
parent228fdc083b017eaf90e578fa86fb1ecfd5ffae87 (diff)
block: null_blk: fix queue leak inside removing device
When queue_mode is NULL_Q_MQ and null_blk is being removed, blk_cleanup_queue() isn't called to cleanup queue, so the queue allocated won't be freed. This patch calls blk_cleanup_queue() for MQ to drain all pending requests first and release the reference counter of queue kobject, then blk_mq_free_queue() will be called in queue kobject's release handler when queue kobject's reference counter drops to zero. Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Jens Axboe <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions