datapath-windows: Return pending for IRPs completed later
authorSorin Vinturis <svinturis@cloudbasesolutions.com>
Thu, 18 Jun 2015 13:48:09 +0000 (13:48 +0000)
committerBen Pfaff <blp@nicira.com>
Thu, 18 Jun 2015 16:05:38 +0000 (09:05 -0700)
Return STATUS_PENDING for IRPs that are completed later in another
thread.

Signed-off-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Reported-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Reported-at: https://github.com/openvswitch/ovs-issues/issues/83
Acked-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
datapath-windows/ovsext/Datapath.c

index b5832de..d8024c8 100644 (file)
@@ -921,6 +921,7 @@ exit:
          * to be processed later, so we mark the IRP as pending and complete
          * it in another thread when the request is processed. */
         IoMarkIrpPending(irp);
+        return status;
     }
     return OvsCompleteIrpRequest(irp, (ULONG_PTR)replyLen, status);
 }