[libvirt] [PATCH 1/4] rpc: Pass the buck only to the first available thread

Jiri Denemark jdenemar at redhat.com
Tue Nov 22 15:32:31 UTC 2011


---
 src/rpc/virnetclient.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/rpc/virnetclient.c b/src/rpc/virnetclient.c
index deeeaad..b518abd 100644
--- a/src/rpc/virnetclient.c
+++ b/src/rpc/virnetclient.c
@@ -1102,7 +1102,7 @@ static void virNetClientIOEventLoopPassTheBuck(virNetClientPtr client, virNetCli
         if (tmp != thiscall && tmp->haveThread) {
             VIR_DEBUG("Passing the buck to %p", tmp);
             virCondSignal(&tmp->cond);
-            break;
+            return;
         }
         tmp = tmp->next;
     }
-- 
1.7.8.rc3




More information about the libvir-list mailing list