v1
2026-10-17
修复zonelist与cpuset分配器竞态 · v1
修复 zonelist 更新序列与 cpuset_nodemask_valid_mems_allowed 无锁检查竞态,避免误失败或放松 MPOL_BIND。
原始补丁链接
子 Patch(2)
1/2
mm/page_alloc: detect zonelist rebuilds from memory hot-add
The zonelist_update_seq retry was limited to CONFIG_MEMORY_HOTREMOVE, presumably because only hot-remove takes zones out of a zonelist. However, build_zonerefs_node() rewrites the zonelists in place,
2/2
cgroup/cpuset: use mems_allowed_seq when checking a policy nodemask
A cpuset update changes the task’s mems_allowed and rebinds its mempolicy in separate steps under mems_allowed_seq, but the check reads both without it. This can cause a spurious numa placement miss