Only resume xenbus /after/ we've prepared our VCPUs; otherwise the

VCPU hotplug callback can race with our vcpu_prepare. 

Signed-off-by: Steven Hand <steven@xensource.com>
This commit is contained in:
smh22@firebug.cl.cam.ac.uk committed 2005-11-18 19:56:03 +01:00
1 parent 949ebc61f8
commit f2896ff4cd
1 file changed
+10 -2
+10 -2
View File
@@ -182,12 +182,20 @@ static int __do_suspend(void *ignore)
xencons_resume();
xenbus_resume();
#ifdef CONFIG_SMP
for_each_cpu(i)
vcpu_prepare(i);
#endif
/*
** Only resume xenbus /after/ we've prepared our VCPUs; otherwise
** the VCPU hotplug callback can race with our vcpu_prepare
*/
xenbus_resume();
#ifdef CONFIG_SMP
out_reenable_cpus:
for_each_cpu_mask(i, prev_online_cpus) {
j = cpu_up(i);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.