[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250506170034.2c6cb08808e60772c207233f@linux-foundation.org>
Date: Tue, 6 May 2025 17:00:34 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
Cc: vbabka@...e.cz, surenb@...gle.com, mhocko@...e.com, jackmanb@...gle.com,
hannes@...xchg.org, bp@...en8.de, tglx@...utronix.de, david@...hat.com,
ast@...nel.org, linux-mm@...ck.org, linux-coco@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] mm/page_alloc: Ensure try_alloc_pages() plays well
with unaccepted memory
On Tue, 6 May 2025 14:25:08 +0300 "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com> wrote:
> try_alloc_pages() will not attempt to allocate memory if the system has
> *any* unaccepted memory. Memory is accepted as needed and can remain in
> the system indefinitely, causing the interface to always fail.
>
> Rather than immediately giving up, attempt to use already accepted
> memory on free lists.
>
> Pass 'alloc_flags' to cond_accept_memory() and do not accept new memory
> for ALLOC_TRYLOCK requests.
What are the userspace-visible effects, please?
Was the omission of cc:stable intentional? I cannot locally determine
this without the above info.
If the cc:stable omission was indeed intentional then it would be better
if this series was presented as two standalone patches.
Powered by blists - more mailing lists