aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/tmem_xen.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-11-14 10:32:59 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-11-14 10:32:59 +0000
commit6ae724388531135f6c405d21543abdde972f255f (patch)
treec8e2487aa4666943efc913cc1db5177302837c28 /xen/common/tmem_xen.c
parentf60cd0f902a383b094e376b7a8f855c26b07d400 (diff)
downloadxen-6ae724388531135f6c405d21543abdde972f255f.tar.gz
xen-6ae724388531135f6c405d21543abdde972f255f.tar.bz2
xen-6ae724388531135f6c405d21543abdde972f255f.zip
tmem: fix domain shutdown problem/race
Tmem fails to put_domain so a dying domain never gets properly shut down. Also, fix race condition when domain is dying by not allowing any new ops to succeed. Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Diffstat (limited to 'xen/common/tmem_xen.c')
-rw-r--r--xen/common/tmem_xen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/common/tmem_xen.c b/xen/common/tmem_xen.c
index b7a308b019..12f249149b 100644
--- a/xen/common/tmem_xen.c
+++ b/xen/common/tmem_xen.c
@@ -314,6 +314,7 @@ EXPORT void tmh_client_destroy(tmh_client_t *tmh)
#ifndef __i386__
xmem_pool_destroy(tmh->persistent_pool);
#endif
+ put_domain(tmh->domain);
xfree(tmh);
}