[prev in list] [next in list] [prev in thread] [next in thread]
List: win-pv-devel
Subject: [win-pv-devel] [PATCH 6/6] Ensure defunct watches have NULL handles
From: Owen Smith <owen.smith () citrix ! com>
Date: 2015-10-29 14:49:47
Message-ID: 1446130187-30460-7-git-send-email-owen.smith () citrix ! com
[Download RAW message or body]
Signed-off-by: Owen Smith <owen.smith@citrix.com>
---
src/xeniface/wmi.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/xeniface/wmi.c b/src/xeniface/wmi.c
index 0f63ef5..c73e990 100644
--- a/src/xeniface/wmi.c
+++ b/src/xeniface/wmi.c
@@ -884,6 +884,7 @@ VOID WatchCallbackThread(__in PVOID StartContext) {
XenIfaceDebugPrint(WARNING,"SessionSuspendResumeUnwatch \
%p\n", watch->watchhandle);
XENBUS_STORE(WatchRemove, &watch->fdoData->StoreInterface, \
watch->watchhandle); + watch->watchhandle = NULL;
StartWatch(watch->fdoData, watch);
}
}
@@ -1187,6 +1188,7 @@ RemoveSessionLocked(XENIFACE_FDO *fdoData,
SessionRemoveWatchesLocked(session);
if (session->transaction != NULL) {
XENBUS_STORE(TransactionEnd, &fdoData->StoreInterface, session->transaction, \
FALSE); + session->transaction = NULL;
}
session->closing = TRUE;
KeSetEvent(&session->SessionChangedEvent, IO_NO_INCREMENT, FALSE);
@@ -1230,6 +1232,7 @@ void SessionUnwatchWatchesLocked(XenStoreSession *session)
XenIfaceDebugPrint(TRACE,"Suspend unwatch %p\n", watch->watchhandle);
XENBUS_STORE(WatchRemove, &watch->fdoData->StoreInterface, \
watch->watchhandle); + watch->watchhandle = NULL;
watch = (XenStoreWatch *)watch->listentry.Flink;
}
XenIfaceDebugPrint(TRACE, "WATCHLIST for session %p-----------\n",session);
--
1.9.4.msysgit.1
_______________________________________________
win-pv-devel mailing list
win-pv-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic