[PATCH 0/2] mm/page_alloc: fixes for free_pages_nolock() on RT/UP

From: Brendan Jackman

Date: Wed Jul 15 2026 - 05:13:25 EST


First patch was originally part of a different series but Andrew asked
for it to be separate:
https://lore.kernel.org/all/20260710170311.e22bfd21c658e8357ceddeec@xxxxxxxxxxxxxxxxxxxx/

Pre-existing bugs found by Sashiko during review of this other series:
https://lore.kernel.org/all/20260703-alloc-trylock-v5-0-c87b714e19d3@xxxxxxxxxx/

I have not reproduced these bugs, and I suspect there is no real-world
user that is affected by them.

Signed-off-by: Brendan Jackman <jackmanb@xxxxxxxxxx>
---
Brendan Jackman (2):
mm/page_alloc: don't spin_trylock() in NMI on UP
mm/page_alloc: don't spin_trylock() when disallowed in free_one_page()

mm/page_alloc.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
base-commit: 83c85fdab41ef98198bdbd731cebc9a15a185dcc
change-id: 20260714-alloc-nolock-fixes-e30618048b99

Best regards,
--
Brendan Jackman <jackmanb@xxxxxxxxxx>