mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemu: Fix misleading comment for qemuDomainObjBeginJobWithDriver()
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.
This commit is contained in:
parent
bd1282d624
commit
36f7dbf4dc
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user