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

[win-pv-devel] [PATCH 1/2] Only break FrontendBackend thread loop when alerted



Returns a missed '!' character without which the FrontendBackend
thread exits immediately - rather than when we Alert the thread
that we wish it to exit

Signed-off-by : Ben.Chalmers@xxxxxxxxxx
---
 src/xenvbd/frontend.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xenvbd/frontend.c b/src/xenvbd/frontend.c
index 2dd9fc7..1aec99e 100644
--- a/src/xenvbd/frontend.c
+++ b/src/xenvbd/frontend.c
@@ -1515,7 +1515,7 @@ FrontendBackend(
     for (;;) {
         KIRQL       Irql;
 
-        if (ThreadWait(Thread))
+        if (!ThreadWait(Thread))
             break;
 
         KeAcquireSpinLock(&Frontend->StateLock, &Irql);
-- 
2.7.0.windows.1


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.