From: "Jose A. Perez de Azpillaga" <azpijr@gmail.com>
To: "David Hildenbrand (Arm)" <david@kernel.org>,
Baolin Wang <baolin.wang@linux.alibaba.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 10:49:25 +0100 [thread overview]
Message-ID: <140d1b94-71fd-417a-a8dd-6735e1ec7fe6@gmail.com> (raw)
In-Reply-To: <03aa8009-48d2-4e4b-b01e-a5f4ec15eb7b@kernel.org>
On 12/2/26 9:47 AM, David Hildenbrand (Arm) wrote:
> 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.
>
good catch, thanks! :) will do in v2.
--
cheers,
jose a. p-a
prev parent reply other threads:[~2026-12-02 9:49 UTC|newest]
Thread overview: 6+ 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)
2026-12-02 9:49 ` Jose A. Perez de Azpillaga [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=140d1b94-71fd-417a-a8dd-6735e1ec7fe6@gmail.com \
--to=azpijr@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=baolin.wang@linux.alibaba.com \
--cc=david@kernel.org \
--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