[PATCH V2 0/2] blk-mq: fix kobject lifetime issue

Ming Lei
2018-11-16T11:23:23Z

Hi Jens,

The 1st patch fixes the kobject lifetime issue which is triggerd when
DEBUG_KOBJECT_RELEASE is enabled.

The 2nd patch can be thought as one follow-up cleanup.

V2:
- allocate 'blk_mq_ctx' inside blk_mq_init_allocated_queue()
- allocate q->mq_kobj directly

Ming Lei (2):
blk-mq: not embed .mq_kobj and ctx->kobj into queue instance
blk-mq: alloc q->queue_ctx as normal array

block/blk-mq-sysfs.c | 51 ++++++++++++++++++++++++-----------------
block/blk-mq.c | 61 +++++++++++++++++++++++++++++++++++++++++---------
block/blk-mq.h | 4 ++--
include/linux/blkdev.h | 4 ++--
4 files changed, 84 insertions(+), 36 deletions(-)

Cc: "jianchao.wang" <jianchao.w.wang@oracle.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

--
2.9.5