mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
cpupools: update domU's node-affinity on the cpupool_unassign_cpu() path
that is, when a cpu is remove from a pool, as it is happening already on the cpupool_assign_cpu_*() path (i.e., when a cpu is added to a pool). Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com> Acked-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
This commit is contained in:
1 parent
eb68feea83
commit
93be8285a7
1 file changed
+6
@@ -355,6 +355,12 @@ int cpupool_unassign_cpu(struct cpupool *c, unsigned int cpu)
|
||||
atomic_inc(&c->refcnt);
|
||||
cpupool_cpu_moving = c;
|
||||
cpumask_clear_cpu(cpu, c->cpu_valid);
|
||||
|
||||
rcu_read_lock(&domlist_read_lock);
|
||||
for_each_domain_in_cpupool(d, c)
|
||||
domain_update_node_affinity(d);
|
||||
rcu_read_unlock(&domlist_read_lock);
|
||||
|
||||
spin_unlock(&cpupool_lock);
|
||||
|
||||
work_cpu = smp_processor_id();
|
||||
|
||||