Message ID | 20170714044033.15196-25-aserdean@cloudbasesolutions.com |
---|---|
State | Accepted |
Headers | show |
diff --git a/datapath-windows/ovsext/User.c b/datapath-windows/ovsext/User.c index 3d4bebe..4693a8b 100644 --- a/datapath-windows/ovsext/User.c +++ b/datapath-windows/ovsext/User.c @@ -55,6 +55,9 @@ extern NL_POLICY nlFlowTunnelKeyPolicy[]; extern UINT32 nlFlowTunnelKeyPolicyLen; DRIVER_CANCEL OvsCancelIrpDatapath; +_IRQL_raises_(DISPATCH_LEVEL) +_IRQL_saves_global_(OldIrql, gOvsSwitchContext->pidHashLock) +_Acquires_lock_(gOvsSwitchContext->pidHashLock) static __inline VOID OvsAcquirePidHashLock() {
Add annotations to the function ` OvsAcquirePidHashLock`. We make it aware that it raises the dispatch level, where it saves the dispatch level and it acquires a lock. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> --- datapath-windows/ovsext/User.c | 3 +++ 1 file changed, 3 insertions(+)