From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org ([198.145.29.99]:33048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727380AbeKPRDL (ORCPT ); Fri, 16 Nov 2018 12:03:11 -0500 Date: Fri, 16 Nov 2018 01:52:05 -0500 From: Sasha Levin To: Ming Lei Cc: Jens Axboe , linux-block@vger.kernel.org, Guenter Roeck , Greg Kroah-Hartman , stable@vger.kernel.org Subject: Re: [PATCH 1/2] blk-mq: not embed .mq_kobj and ctx->kobj into queue instance Message-ID: <20181116065205.GD1706@sasha-vm> References: <20181116032826.11901-1-ming.lei@redhat.com> <20181116032826.11901-2-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20181116032826.11901-2-ming.lei@redhat.com> Sender: stable-owner@vger.kernel.org List-ID: 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 >Cc: Guenter Roeck >Cc: Greg Kroah-Hartman >Cc: stable@vger.kernel.org >Signed-off-by: Ming Lei 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