On Tue, May 06, 2025 at 02:25:09PM +0300, Kirill A. Shutemov wrote:
The page allocator tracks the number of zones that have unaccepted memory using static_branch_enc/dec() and uses that static branch in hot paths to determine if it needs to deal with unaccepted memory.
Borisal and Thomas pointed out that the tracking is racy operations on
Boris or Borislav would be nice.
static_branch are not serialized against adding/removing unaccepted pages to/from the zone.
Also, that sentence needs massaging.
The effect of this static_branch optimization is only visible on microbenchmark.
Instead of adding more complexity around it, remove it altogether.
Yah, good idea.
Signed-off-by: Kirill A. Shutemov kirill.shutemov@linux.intel.com Fixes: dcdfdd40fa82 ("mm: Add support for unaccepted memory") Link: https://lore.kernel.org/all/20250506092445.GBaBnVXXyvnazly6iF@fat_crate.loca... Reported-by: Borislav Petkov bp@alien8.de
Tested-by: Borislav Petkov (AMD) bp@alien8.de
Thx for the quick fix.