[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Don't schedule work for reboot if work is already scheduled. This fixes a



# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID dc36edf1102fd8dc3638f1a2f0bd7f38cb97e8c3
# Parent  9f44b2aa98f3b4e48485900c857bae7cbc335895
Don't schedule work for reboot if work is already scheduled.  This fixes a
problem whereby migrated domains would shut themselves down immediately,
because the watch from the removal of the control/shutdown node would fire
after the workqueue had started, but before the domain was suspended, meaning
that an additional piece of work was scheduled, which ran immediately after the
domain was resumed. 

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r 9f44b2aa98f3 -r dc36edf1102f 
linux-2.6-xen-sparse/arch/xen/kernel/reboot.c
--- a/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c     Sun Oct 30 12:48:34 2005
+++ b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c     Sun Oct 30 12:52:38 2005
@@ -283,7 +283,7 @@
        int err;
 
        if (shutting_down != SHUTDOWN_INVALID)
-               goto out;
+               return;
 
  again:
        xbt = xenbus_transaction_start();

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.