virDomainObjSignal: drop this function

There are multiple consumers for the domain condition and we should
always wake them all.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina 2015-06-29 16:28:35 +02:00
parent 5c48618f11
commit 6b278f3ad6
4 changed files with 2 additions and 11 deletions

View File

@ -2661,13 +2661,6 @@ virDomainObjEndAPI(virDomainObjPtr *vm)
} }
void
virDomainObjSignal(virDomainObjPtr vm)
{
virCondSignal(&vm->cond);
}
void void
virDomainObjBroadcast(virDomainObjPtr vm) virDomainObjBroadcast(virDomainObjPtr vm)
{ {

View File

@ -2443,7 +2443,6 @@ void virDomainObjEndAPI(virDomainObjPtr *vm);
bool virDomainObjTaint(virDomainObjPtr obj, bool virDomainObjTaint(virDomainObjPtr obj,
virDomainTaintFlags taint); virDomainTaintFlags taint);
void virDomainObjSignal(virDomainObjPtr vm);
void virDomainObjBroadcast(virDomainObjPtr vm); void virDomainObjBroadcast(virDomainObjPtr vm);
int virDomainObjWait(virDomainObjPtr vm); int virDomainObjWait(virDomainObjPtr vm);
int virDomainObjWaitUntil(virDomainObjPtr vm, int virDomainObjWaitUntil(virDomainObjPtr vm,

View File

@ -412,7 +412,6 @@ virDomainObjParseNode;
virDomainObjSetDefTransient; virDomainObjSetDefTransient;
virDomainObjSetMetadata; virDomainObjSetMetadata;
virDomainObjSetState; virDomainObjSetState;
virDomainObjSignal;
virDomainObjTaint; virDomainObjTaint;
virDomainObjUpdateModificationImpact; virDomainObjUpdateModificationImpact;
virDomainObjWait; virDomainObjWait;

View File

@ -1004,7 +1004,7 @@ qemuProcessHandleBlockJob(qemuMonitorPtr mon ATTRIBUTE_UNUSED,
/* We have a SYNC API waiting for this event, dispatch it back */ /* We have a SYNC API waiting for this event, dispatch it back */
diskPriv->blockJobType = type; diskPriv->blockJobType = type;
diskPriv->blockJobStatus = status; diskPriv->blockJobStatus = status;
virDomainObjSignal(vm); virDomainObjBroadcast(vm);
} else { } else {
/* there is no waiting SYNC API, dispatch the update to a thread */ /* there is no waiting SYNC API, dispatch the update to a thread */
if (VIR_ALLOC(processEvent) < 0) if (VIR_ALLOC(processEvent) < 0)
@ -1500,7 +1500,7 @@ qemuProcessHandleSpiceMigrated(qemuMonitorPtr mon ATTRIBUTE_UNUSED,
} }
priv->job.spiceMigrated = true; priv->job.spiceMigrated = true;
virDomainObjSignal(vm); virDomainObjBroadcast(vm);
cleanup: cleanup:
virObjectUnlock(vm); virObjectUnlock(vm);