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

[Xen-changelog] [xen-unstable] When a domain crashes, ignore shutdown deferrals.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1236002961 0
# Node ID c62b453f27d5bf843890d47ec88e39be78efc0b1
# Parent  58edfadb2d87989b464c6153b6f49f9d5f75f445
When a domain crashes, ignore shutdown deferrals.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/common/domain.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -r 58edfadb2d87 -r c62b453f27d5 xen/common/domain.c
--- a/xen/common/domain.c       Mon Mar 02 13:56:47 2009 +0000
+++ b/xen/common/domain.c       Mon Mar 02 14:09:21 2009 +0000
@@ -465,7 +465,9 @@ void domain_shutdown(struct domain *d, u
 
     for_each_vcpu ( d, v )
     {
-        if ( v->defer_shutdown )
+        if ( reason == SHUTDOWN_crash )
+            v->defer_shutdown = 0;
+        else if ( v->defer_shutdown )
             continue;
         vcpu_pause_nosync(v);
         v->paused_for_shutdown = 1;

_______________________________________________
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®.