|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] xend: get rid of remains in xenstore
The xenstore often holds remains of domain path. XendDomainInfo._storeChanged thread, which is watching the "/vm/<uuid>", might run after XendDomainInfo.cleanupDomain is done by shutting down the domain. thus, the xenstore path "/local/domain/<domid>" is once removed but revived again. Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx> diff -r e54eeff2de54 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py Fri Mar 27 11:07:11 2009 +0900
+++ b/tools/python/xen/xend/XendDomainInfo.py Mon Mar 30 10:06:20 2009 +0900
@@ -1629,7 +1629,13 @@ class XendDomainInfo:
if changed:
# Update the domain section of the store, as this contains some
# parameters derived from the VM configuration.
- self._storeDomDetails()
+ self.refresh_shutdown_lock.acquire()
+ try:
+ # Check if the domain is shutting down
+ if self.domid != None:
+ self._storeDomDetails()
+ finally:
+ self.refresh_shutdown_lock.release()
return 1
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |