WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] When a domain crashes, ignore shutdown deferrals.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 03 Mar 2009 11:10:37 -0800
Delivery-date: Tue, 03 Mar 2009 11:12:07 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] When a domain crashes, ignore shutdown deferrals., Xen patchbot-unstable <=