[PATCH 10/10] vz: fix many stat request issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]