From: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
To: Ming Lei <ming.lei@redhat.com>
Cc: Jens Axboe <axboe@kernel.dk>,
linux-block@vger.kernel.org, Christoph Hellwig <hch@lst.de>,
John Garry <john.g.garry@oracle.com>,
stable@vger.kernel.org
Subject: Re: [PATCH V2] block: mark GFP_NOIO around sysfs ->store()
Date: Mon, 13 Jan 2025 10:05:19 +0100 [thread overview]
Message-ID: <d35f083853fd3407d03a6f610396f14140a4eec0.camel@linux.intel.com> (raw)
In-Reply-To: <Z4TWUCoZV_NVzHMa@fedora>
On Mon, 2025-01-13 at 17:01 +0800, Ming Lei wrote:
> On Mon, Jan 13, 2025 at 09:50:37AM +0100, Thomas Hellström wrote:
> > Hi!
> >
> > On Mon, 2025-01-13 at 16:41 +0800, Ming Lei wrote:
> > > sysfs ->store is called with queue freezed, meantime we have
> > > several
> > > ->store() callbacks(update_nr_requests, wbt, scheduler) to
> > > allocate
> > > memory with GFP_KERNEL which may run into direct reclaim code
> > > path,
> > > then potential deadlock can be caused.
> > >
> > > Fix the issue by marking NOIO around sysfs ->store()
> > >
> > > Reviewed-by: Christoph Hellwig <hch@lst.de>
> > > Reviewed-by: John Garry <john.g.garry@oracle.com>
> > > Reported-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
> > > Closes:
> > > https://lore.kernel.org/linux-block/ead7c5ce5138912c1f3179d62370b84a64014a38.camel@linux.intel.com/
> > > Fixes: bd166ef183c2 ("blk-mq-sched: add framework for MQ capable
> > > IO
> > > schedulers")
> >
> > Does this fix also the #2 lockdep splat in that email?
>
> No.
>
> The #2 splat fix has been merged to for-6.14/block, and this patch
> only
> covers the one reported in the Closes link.
I actually reported two new splats in the Closes link.
(The second was found when using the suggested lockdep priming, but
would ofc emerge sooner or later without it). I'm pretty sure
Christoph's series was applied when that patch emerged, but I can retry
if you want.
Thanks,
Thomas
>
> https://lore.kernel.org/linux-block/20250110054726.1499538-1-hch@lst.de/
>
>
> Thanks,
> Ming
>
prev parent reply other threads:[~2025-01-13 9:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-13 8:41 [PATCH V2] block: mark GFP_NOIO around sysfs ->store() Ming Lei
2025-01-13 8:50 ` Thomas Hellström
2025-01-13 9:01 ` Ming Lei
2025-01-13 9:05 ` Thomas Hellström [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=d35f083853fd3407d03a6f610396f14140a4eec0.camel@linux.intel.com \
--to=thomas.hellstrom@linux.intel.com \
--cc=axboe@kernel.dk \
--cc=hch@lst.de \
--cc=john.g.garry@oracle.com \
--cc=linux-block@vger.kernel.org \
--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