diff options
author | Ming Lei <ming.lei@canonical.com> | 2015-01-29 13:17:27 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-01-29 17:30:51 +0100 |
commit | e09aae7edec1d20824c60a6f0ca4589f99ada17b (patch) | |
tree | 1cf7f6b2434f356f9dab4104bd5ecbfa85228799 /.gitignore | |
parent | Revert "blk-mq: fix hctx/ctx kobject use-after-free" (diff) | |
download | linux-e09aae7edec1d20824c60a6f0ca4589f99ada17b.tar.xz linux-e09aae7edec1d20824c60a6f0ca4589f99ada17b.zip |
blk-mq: release mq's kobjects in blk_release_queue()
The kobject memory inside blk-mq hctx/ctx shouldn't have been freed
before the kobject is released because driver core can access it freely
before its release.
We can't do that in all ctx/hctx/mq_kobj's release handler because
it can be run before blk_cleanup_queue().
Given mq_kobj shouldn't have been introduced, this patch simply moves
mq's release into blk_release_queue().
Reported-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions