From: Christoph Hellwig <hch@infradead.org>
To: Andreas Gruenbacher <agruenba@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>,
Christian Brauner <brauner@kernel.org>,
"Darrick J. Wong" <djwong@kernel.org>,
gfs2 <gfs2@lists.linux.dev>,
linux-xfs@vger.kernel.org,
linux-fsdevel <linux-fsdevel@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: iomap_writepages WARN_ON_ONCE(PF_MEMALLOC)
Date: Thu, 2 Jul 2026 03:59:24 -0700 [thread overview]
Message-ID: <akZEjH2Hf8-RR8yQ@infradead.org> (raw)
In-Reply-To: <CAHc6FU4tz8-HmEf2_XKT0NT8N=rv5OMcY79PxTACkXAVLOAUpg@mail.gmail.com>
On Wed, Jul 01, 2026 at 10:51:06PM +0200, Andreas Gruenbacher wrote:
> Do you have any suggestions?
>
> The above is on RHEL-8, but a similar code path exists in cgroups v2,
> triggered via:
>
> echo reclaim_amount > /sys/fs/cgroup/.../memory.reclaim
>
> That code path starts with:
>
> memory_reclaim -> user_proactive_reclaim -> try_to_free_mem_cgroup_pages ->
PF_MEMALLOC is a sign of direct reclaim. cgroup code is doing really
weird things when it is set and it is doing writeback.
next prev parent reply other threads:[~2026-07-02 10:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-01 20:51 iomap_writepages WARN_ON_ONCE(PF_MEMALLOC) Andreas Gruenbacher
2026-07-02 10:59 ` Christoph Hellwig [this message]
2026-07-04 0:56 ` Matthew Wilcox
2026-07-06 13:15 ` Andreas Gruenbacher
2026-07-04 4:40 ` Shakeel Butt
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=akZEjH2Hf8-RR8yQ@infradead.org \
--to=hch@infradead.org \
--cc=agruenba@redhat.com \
--cc=brauner@kernel.org \
--cc=djwong@kernel.org \
--cc=gfs2@lists.linux.dev \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.