summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorGregory Price (Meta) <gourry@gourry.net>2026-10-31 22:13:29 -0400
committerVlastimil Babka (SUSE) <vbabka@kernel.org>2026-11-05 10:54:12 +0100
commitb35ce030893929b3670de82bdac2713cb7b20d90 (patch)
treef0e61cc49ee91f30fdf9cdf4252c363617d1f0df /include/linux/debugobjects.h
parent6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 (diff)
mm/page_alloc: reset can_retry_reserves when the slowpath restarts
Commit 2c4c3e29897d ("mm/page_alloc: simplify __alloc_pages_slowpath() flow") retries an allocation once with reserve_flags when the caller becomes eligible for reserves, guarded by can_retry_reserves. A restart after a cpuset update or a zonelist rebuild retries with can_retry_reserves already set to false, so a caller that cannot reclaim (GFP_NOWAIT | __GFP_MEMALLOC), fails without trying reserves. Reset can_retry_reserves on restart. Only a cpuset or zonelist change restarts the slowpath, so the retry still runs at most once per change. With a kprobe helping to make the race deterministic, an allocation can be made to return NULL. With this patch the allocation will succeed. Fixes: 2c4c3e29897d ("mm/page_alloc: simplify __alloc_pages_slowpath() flow") Cc: stable@vger.kernel.org Signed-off-by: Gregory Price (Meta) <gourry@gourry.net> Link: https://patch.msgid.link/20261101021340.2251928-2-gourry@gourry.net Acked-by: Zi Yan <ziy@nvidia.com> Signed-off-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions