BUG/MEDIUM: cpu-topo: Don't forget to reset visited_ccx.

We want to reset visited_ccx, as introduced by commit
8aef5bec1ef57eac449298823843d6cc08545745, each time we run the loop,
otherwise the chances of its content being correct are very low, and
will likely end up being bound to the wrong threads.
This was reported in github issue #3224.
This commit is contained in:
Olivier Houchard 2025-12-26 23:50:20 +01:00 committed by Olivier Houchard
parent f8a77ecf62
commit 54f59e4669

View File

@ -1507,6 +1507,7 @@ static int cpu_policy_group_by_ccx(int policy, int tmin, int tmax, int gmin, int
while (global.nbtgroups < MAX_TGROUPS && global.nbthread < MAX_THREADS) {
ha_cpuset_zero(&node_cpu_set);
ha_cpuset_zero(&visited_tsid);
ha_cpuset_zero(&visited_ccx);
l3id = -1; cpu_count = 0;
for (cpu = cpu_start; cpu <= cpu_topo_lastcpu; cpu++) {