]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix up the locking in the snapshot code.
authorChris Lalancette <clalance@redhat.com>
Thu, 22 Apr 2010 16:01:56 +0000 (12:01 -0400)
committerChris Lalancette <clalance@redhat.com>
Tue, 27 Apr 2010 14:40:36 +0000 (10:40 -0400)
commitb69bbebbba543b5c3bb190815d0074a576aa4966
tree931b723b30f1c517c905c56e01775388679f3c80
parent0c4010a1d78b8935500051016c5dda4b6985fed3
Fix up the locking in the snapshot code.

In particular I was forgetting to take the qemuMonitorPrivatePtr
lock (via qemuDomainObjBeginJob), which would cause problems
if two users tried to access the same domain at the same time.
This patch also fixes a problem where I was forgetting to remove
a transient domain from the list of domains.

Thanks to Stephen Shaw for pointing out the problem and testing
out the initial patch.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
src/qemu/qemu_driver.c