From: "David Hildenbrand (Arm)" <david@kernel.org>
To: Baolin Wang <baolin.wang@linux.alibaba.com>,
"Jose A. Perez de Azpillaga" <azpijr@gmail.com>,
Hugh Dickins <hughd@google.com>,
Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org
Subject: Re: [PATCH] mm/shmem: don't allocate the replacement folio with the folio locked
Date: Wed, 2 Dec 2026 09:47:16 +0100 [thread overview]
Message-ID: <03aa8009-48d2-4e4b-b01e-a5f4ec15eb7b@kernel.org> (raw)
In-Reply-To: <1a850e32-9242-45e6-ab46-bd23beeacc5c@linux.alibaba.com>
On 12/2/26 09:14, Baolin Wang wrote:
>
>
> On 12/2/26 4:05 PM, David Hildenbrand (Arm) wrote:
>> On 12/2/26 08:45, Baolin Wang wrote:
>>>
>>>
>>>
>>> Why not just drop the __GFP_FS flag in shmem_replace_folio(), like the
>>> fixes in your previous patchset?
>>
>> I think we should try to avoid allocating under folio lock wherever we easily
>> can. It just screams for bugs :)
>
> OK. But I still feel uncomfortable about skipping the swap entry check.
Yes, that should absolutely be handled correctly.
--
Cheers,
David
prev parent reply other threads:[~2026-12-02 8:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 22:13 [PATCH] mm/shmem: don't allocate the replacement folio with the folio locked Jose A. Perez de Azpillaga
2026-12-02 7:45 ` Baolin Wang
2026-12-02 8:05 ` David Hildenbrand (Arm)
2026-12-02 8:14 ` Baolin Wang
2026-12-02 8:47 ` David Hildenbrand (Arm) [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=03aa8009-48d2-4e4b-b01e-a5f4ec15eb7b@kernel.org \
--to=david@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=azpijr@gmail.com \
--cc=baolin.wang@linux.alibaba.com \
--cc=hughd@google.com \
--cc=linux-mm@kvack.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