]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: drop virDomainObj lock when destroying a domain
authorJim Fehlig <jfehlig@suse.com>
Wed, 4 Mar 2015 00:54:50 +0000 (17:54 -0700)
committerJim Fehlig <jfehlig@suse.com>
Thu, 16 Apr 2015 22:43:19 +0000 (16:43 -0600)
commit6dfec1efba8f17faa7f8e52291198739099d5aa4
tree7f12f3d6556d955b8a7be2d93432aad61e46d385
parent894d2ff759ac48e915da36ffa162841c7c207a6a
libxl: drop virDomainObj lock when destroying a domain

A destroy operation can take considerable time on large memory
domains due to scrubbing the domain's memory.  Unlock the
virDomainObj while libxl_domain_destroy is executing.

Implement libxlDomainDestroyInternal wrapper to handle unlocking,
calling destroy, and locking.  Change all callers of
libxl_domain_destroy to use the wrapper.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/libxl/libxl_domain.c
src/libxl/libxl_domain.h
src/libxl/libxl_driver.c
src/libxl/libxl_migration.c