]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Fix misleading comment for qemuDomainObjBeginJobWithDriver()
authorPeter Krempa <pkrempa@redhat.com>
Thu, 27 Sep 2012 09:17:19 +0000 (11:17 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 11 Oct 2012 14:21:30 +0000 (16:21 +0200)
The comment stated that you may call qemuDomainObjBeginJobWithDriver
without passing qemud_driver to signal it's not locked.
qemuDomainObjBeginJobWithDriver still accesses the qemud_driver
structure and the lock singaling is done through a separate parameter.

src/qemu/qemu_domain.c

index ff56c463a5b255cd3e0a12f23089afd7890599ba..427258d4a589ea5b4813329c1f7b5273d7737cd6 100644 (file)
@@ -880,8 +880,7 @@ int qemuDomainObjBeginAsyncJob(struct qemud_driver *driver,
 }
 
 /*
- * obj must be locked before calling. If qemud_driver is passed, it MUST be
- * locked; otherwise it MUST NOT be locked.
+ * obj and qemud_driver must be locked before calling.
  *
  * This must be called by anything that will change the VM state
  * in any way, or anything that will use the QEMU monitor.