From: Ming Lei <ming.lei@redhat.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jens Axboe <axboe@kernel.dk>,
linux-block@vger.kernel.org,
"jianchao.wang" <jianchao.w.wang@oracle.com>,
Guenter Roeck <linux@roeck-us.net>,
stable@vger.kernel.org
Subject: Re: [PATCH V2 for-4.21 1/2] blk-mq: not embed .mq_kobj and ctx->kobj into queue instance
Date: Mon, 19 Nov 2018 18:20:55 +0800 [thread overview]
Message-ID: <20181119102054.GA18231@ming.t460p> (raw)
In-Reply-To: <20181119100606.GB19910@kroah.com>
On Mon, Nov 19, 2018 at 11:06:06AM +0100, Greg Kroah-Hartman wrote:
> On Sat, Nov 17, 2018 at 10:26:38AM +0800, Ming Lei wrote:
> > On Fri, Nov 16, 2018 at 06:05:21AM -0800, Greg Kroah-Hartman wrote:
> > > On Fri, Nov 16, 2018 at 07:23:10PM +0800, Ming Lei wrote:
> > > > @@ -456,7 +456,7 @@ struct request_queue {
> > > > /*
> > > > * mq queue kobject
> > > > */
> > > > - struct kobject mq_kobj;
> > > > + struct kobject *mq_kobj;
> > >
> > > What is this kobject even used for? It wasn't obvious at all from this
> > > patch, why is it needed if you are not using it to reference count the
> > > larger structure here?
> >
> > All attributes and kobjects under /sys/block/$DEV/mq are covered by this kobject
> > actually, and all are for exposing blk-mq specific information, but now there is
> > only blk-mq, and legacy io path is removed.
>
> I am sorry, but I really can not parse this sentance at all.
>
> What Documentation/ABI/ entries are covered by this kobject, that should
> help me out more. And what do you mean by "legacy io"?
After blk-mq is introduced, there are two main IO request paths:
1) blk-mq, IO is queued via blk_mq_make_request()
2) legacy IO path, IO is queued via blk_queue_bio()
The legacy IO path will be removed in 4.21, and patches have been queued
in for-4.21/block.
>
> > That is why I mentioned we may remove this kobject last time and move all under
> > /sys/block/$DEV/queue, however you thought that may break some userspace.
>
> Who relies on these sysfs files today?
I don't know, actually the question is from you, :-(
https://marc.info/?l=linux-kernel&m=154205455332755&w=2
Even we remove q->mq_kobj, the same kobject lifetime issue is still here in
kobjects embedded in 'struct blk_mq_ctx'.
>
> > If we want to backport them to stable, this patch may be a bit easier to go.
>
> Why do you want to backport any of this to stable?
For this report from Guenter, it should be enough to backport the 1st patch,
and it shouldn't be very hard to backport both.
I can help to backport them if patches can't be applied cleanly.
Thanks,
Ming
prev parent reply other threads:[~2018-11-19 20:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20181116112311.4117-1-ming.lei@redhat.com>
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 [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=20181119102054.GA18231@ming.t460p \
--to=ming.lei@redhat.com \
--cc=axboe@kernel.dk \
--cc=gregkh@linuxfoundation.org \
--cc=jianchao.w.wang@oracle.com \
--cc=linux-block@vger.kernel.org \
--cc=linux@roeck-us.net \
--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