summaryrefslogtreecommitdiff
path: root/datapath-windows/ovsext/Datapath.c
diff options
context:
space:
mode:
authorSorin Vinturis <svinturis@cloudbasesolutions.com>2015-08-31 17:46:37 +0000
committerBen Pfaff <blp@nicira.com>2015-08-31 14:23:32 -0700
commite41ad06bcdf97c7259018a66ee0de2748dbe70ad (patch)
treee5b62f0b05bbb1a5a66beed3a7c967f6775ee138 /datapath-windows/ovsext/Datapath.c
parent9ae7a6ebb3d2eba25a0838766ce50746c3adaa55 (diff)
downloadopenvswitch-e41ad06bcdf97c7259018a66ee0de2748dbe70ad.tar.gz
datapath-windows: Support for IRP cancelling mechanism
Under certain circumstances, we might need to cancel a pending IRP that has been submitted and not yet responded. This might occur when the request takes too long to complete or when the process which initiated the request terminated, leaving the request outstanding. This patch provides this missing piece by adding support for IRP cancelling mechanism. Signed-off-by: Sorin Vinturis <svinturis@cloudbasesolutions.com> Reported-by: Sorin Vinturis <svinturis@cloudbasesolutions.com> Reported-at: https://github.com/openvswitch/ovs-issues/issues/95 Acked-by: Nithin Raju <nithin@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath-windows/ovsext/Datapath.c')
-rw-r--r--datapath-windows/ovsext/Datapath.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/datapath-windows/ovsext/Datapath.c b/datapath-windows/ovsext/Datapath.c
index 8c725330e..b7bbf8004 100644
--- a/datapath-windows/ovsext/Datapath.c
+++ b/datapath-windows/ovsext/Datapath.c
@@ -918,10 +918,6 @@ done:
exit:
/* Should not complete a pending IRP unless proceesing is completed. */
if (status == STATUS_PENDING) {
- /* STATUS_PENDING is returned by the NL handler when the request is
- * 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);