On Fri, Nov 16, 2018 at 11:28:25AM +0800, Ming Lei wrote:
Even though .mq_kobj, ctx->kobj and q->kobj share same lifetime
from block layer's view, actually they don't because userspace may
grab one kobject anytime via sysfs, so each kobject's lifetime has
to be independent, then the objects(mq_kobj, ctx) which hosts its
own kobject have to be allocated dynamically.

This patch fixes kernel panic issue during booting when DEBUG_KOBJECT_RELEASE
is enabled.

Reported-by: Guenter Roeck <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]
Signed-off-by: Ming Lei <[email protected]>

What does this patch depend on? It doesn't apply to Linus's tree nor to
the block tree.

Also, could you please cc lkml with patches?

--
Thanks,
Sasha

Reply via email to