diff options
author | Juergen Gross <juergen.gross@ts.fujitsu.com> | 2011-11-18 13:34:43 +0000 |
---|---|---|
committer | Juergen Gross <juergen.gross@ts.fujitsu.com> | 2011-11-18 13:34:43 +0000 |
commit | f42d7a66bf44fdff582a4e2ff2c33e99a579c0d4 (patch) | |
tree | 4c649865d20d1d9caf54ec4556cc6ea04a212a42 /xen/common/schedule.c | |
parent | 95ad9f65c972a3439ae6d11243373be16f71cb94 (diff) | |
download | xen-f42d7a66bf44fdff582a4e2ff2c33e99a579c0d4.tar.gz xen-f42d7a66bf44fdff582a4e2ff2c33e99a579c0d4.tar.bz2 xen-f42d7a66bf44fdff582a4e2ff2c33e99a579c0d4.zip |
sched_sedf: Avoid panic when adjusting sedf parameters
When using sedf scheduler in a cpupool the system might panic when
setting sedf scheduling parameters for a domain. Introduces
for_each_domain_in_cpupool macro as it is usable 4 times now. Add
appropriate locking in cpupool_unassign_cpu().
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/schedule.c')
-rw-r--r-- | xen/common/schedule.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xen/common/schedule.c b/xen/common/schedule.c index c07d6f0f98..0455619ac2 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -538,11 +538,8 @@ int cpu_disable_scheduler(unsigned int cpu) if ( c == NULL ) return ret; - for_each_domain ( d ) + for_each_domain_in_cpupool ( d, c ) { - if ( d->cpupool != c ) - continue; - affinity_broken = 0; for_each_vcpu ( d, v ) |