All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/2] blk-mq: fix kobject lifetime issue
@ 2018-11-16 11:23 Ming Lei
  2018-11-16 11:23 ` [PATCH V2 for-4.21 1/2] blk-mq: not embed .mq_kobj and ctx->kobj into queue instance Ming Lei
  2018-11-16 11:23 ` [PATCH V2 for-4.21 2/2] blk-mq: alloc q->queue_ctx as normal array Ming Lei
  0 siblings, 2 replies; 13+ messages in thread
From: Ming Lei @ 2018-11-16 11:23 UTC (permalink / raw)
  To: Jens Axboe
  Cc: linux-block, Ming Lei, jianchao.wang, Guenter Roeck, Greg Kroah-Hartman

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-11-19 10:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-16 11:23 [PATCH V2 0/2] blk-mq: fix kobject lifetime issue Ming Lei
2018-11-16 11:23 ` [PATCH V2 for-4.21 1/2] blk-mq: not embed .mq_kobj and ctx->kobj into queue instance Ming Lei
2018-11-16 14:05   ` Greg Kroah-Hartman
2018-11-17  2:26     ` Ming Lei
2018-11-19 10:06       ` Greg Kroah-Hartman
2018-11-19 10:20         ` Ming Lei
2018-11-16 11:23 ` [PATCH V2 for-4.21 2/2] blk-mq: alloc q->queue_ctx as normal array Ming Lei
2018-11-16 14:06   ` Greg Kroah-Hartman
2018-11-17  2:34     ` Ming Lei
2018-11-17 10:03       ` Greg Kroah-Hartman
2018-11-19  2:04         ` Ming Lei
2018-11-19 10:17           ` Greg Kroah-Hartman
2018-11-19 10:51             ` Ming Lei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.