Re: [PATCH v2 2/5] mm/page_alloc: validate zonelist slots against concurrent rebuilds

From: Gregory Price (Meta)

Date: Tue Oct 20 2026 - 16:30:57 EST


On 2026-10-20 17:22 +0200, Vlastimil Babka (SUSE) wrote:
> On 10/19/26 19:23, Gregory Price (Meta) wrote:
> Furthermore, since we have the zonelist_update_seq anyway, wouldn't it be
> better to use it to avoid these kinds of races rather than the more tricky
> way of relying on what exact updates in what order can derail the allocator
> side and trying to protect against those specifically?
>

Sorry also meant to note that from my reading, zonelist_update_seq
presently only gets checked on failure, but maybe we could re-use it on
success? Let me see.

~Gregory

--
Gregory Price (Meta) <gourry@xxxxxxxxxx>