[libvirt] [PATCH 10/10] vz: fix many stat request issue
Nikolay Shirokovskiy
nshirokovskiy at virtuozzo.com
Thu Jun 2 11:24:31 UTC 2016
Signalling one thread on arriving stats data is not correct. In case
2 stat requests and empty stats cache one thread subscribes to the
stats events and both wait arriving stats event.
Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy at virtuozzo.com>
---
src/vz/vz_sdk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c
index 51730be..50b21a8 100644
--- a/src/vz/vz_sdk.c
+++ b/src/vz/vz_sdk.c
@@ -4135,7 +4135,7 @@ vzCountersCacheEvent(vzCountersCachePtr cache, PRL_HANDLE event)
cache->stats = event;
/* thus we get own of event handle */
event = PRL_INVALID_HANDLE;
- virCondSignal(&cache->cond);
+ virCondBroadcast(&cache->cond);
}
cleanup:
--
1.8.3.1
More information about the libvir-list
mailing list