[ovs-dev] [PATCH] datapath-windows: Realease dispatch lock after processing

Alin Serdean aserdean at cloudbasesolutions.com
Mon Jul 13 17:05:31 UTC 2015


Release the switch context dispatch lock after all possible processing
is done over the vport.

Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
---
 datapath-windows/ovsext/Vport.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/datapath-windows/ovsext/Vport.c b/datapath-windows/ovsext/Vport.c
index 4315464..7cbe59e 100644
--- a/datapath-windows/ovsext/Vport.c
+++ b/datapath-windows/ovsext/Vport.c
@@ -1563,7 +1563,7 @@ OvsGetExtInfoIoctl(POVS_VPORT_GET vportGet,
         extInfo->vmUUID[0] = 0;
         extInfo->vifUUID[0] = 0;
     }
-    NdisReleaseRWLock(gOvsSwitchContext->dispatchLock, &lockState);
+
     if (doConvert) {
         status = OvsConvertIfCountedStrToAnsiStr(&vport->portFriendlyName,
                                                  extInfo->name,
@@ -1593,6 +1593,7 @@ OvsGetExtInfoIoctl(POVS_VPORT_GET vportGet,
          */
         status = STATUS_SUCCESS;
     }
+    NdisReleaseRWLock(gOvsSwitchContext->dispatchLock, &lockState);
 
 ext_info_done:
     return status;
-- 
1.9.5.msysgit.0



More information about the dev mailing list