mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-08 16:54:49 +00:00
qemu: Don't warn when releasing a released job
When qemuDomainObjReleaseAsyncJob is called when the current async job is already released we emit quite useless warning which was implemented to warn about releasing a job owned by another thread. Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
bff05a4504
commit
2472e601ab
@ -647,7 +647,8 @@ qemuDomainObjReleaseAsyncJob(virDomainObj *obj)
|
||||
VIR_DEBUG("Releasing ownership of '%s' async job",
|
||||
virDomainAsyncJobTypeToString(obj->job->asyncJob));
|
||||
|
||||
if (obj->job->asyncOwner != virThreadSelfID()) {
|
||||
if (obj->job->asyncOwner != 0 &&
|
||||
obj->job->asyncOwner != virThreadSelfID()) {
|
||||
VIR_WARN("'%s' async job is owned by thread %llu",
|
||||
virDomainAsyncJobTypeToString(obj->job->asyncJob),
|
||||
obj->job->asyncOwner);
|
||||
|
Loading…
Reference in New Issue
Block a user