stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: Ming Lei <ming.lei@redhat.com>
Cc: Jens Axboe <axboe@kernel.dk>,
	linux-block@vger.kernel.org, Guenter Roeck <linux@roeck-us.net>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	stable@vger.kernel.org
Subject: Re: [PATCH 1/2] blk-mq: not embed .mq_kobj and ctx->kobj into queue instance
Date: Fri, 16 Nov 2018 11:07:05 -0500	[thread overview]
Message-ID: <20181116160705.GE1706@sasha-vm> (raw)
In-Reply-To: <20181116074905.GB5520@ming.t460p>

On Fri, Nov 16, 2018 at 03:49:06PM +0800, Ming Lei wrote:
>On Fri, Nov 16, 2018 at 01:52:05AM -0500, Sasha Levin wrote:
>> 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 <linux@roeck-us.net>
>> > Cc: Guenter Roeck <linux@roeck-us.net>
>> > Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>> > Cc: stable@vger.kernel.org
>> > Signed-off-by: Ming Lei <ming.lei@redhat.com>
>>
>> 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?
>
>It depends on for-4.21/block.

And in particular on commit 392546aed22 ("blk-mq: separate number of
hardware queues from nr_cpu_ids") which isn't tagged for stable nor
looks like stable material, so this proposed patch doesn't backport
cleanly to any of the stable trees.

--
Thanks,
Sasha

      reply	other threads:[~2018-11-17  2:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20181116032826.11901-1-ming.lei@redhat.com>
2018-11-16  3:28 ` [PATCH 1/2] blk-mq: not embed .mq_kobj and ctx->kobj into queue instance Ming Lei
2018-11-16  6:11   ` jianchao.wang
2018-11-16  7:52     ` Ming Lei
2018-11-16  6:52   ` Sasha Levin
2018-11-16  7:49     ` Ming Lei
2018-11-16 16:07       ` Sasha Levin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181116160705.GE1706@sasha-vm \
    --to=sashal@kernel.org \
    --cc=axboe@kernel.dk \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-block@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=ming.lei@redhat.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).