[ofw] [PATCH] Destroy CEP when a CM REQ fails

Fab Tillier ftillier at windows.microsoft.com
Tue Jul 8 17:10:09 PDT 2008


This patch adds a missing call to destroy a QP's associated CEP if a ND-related CM REQ times out or fails for any reason.

Signed-off-by: Fab Tillier <ftillier at microsoft.com>

diff -up -r -X trunk\docs\dontdiff.txt -I \$Id: old\core\al\kernel\al_ndi_cm.c trunk\core\al\kernel\al_ndi_cm.c
--- old\core\al\kernel\al_ndi_cm.c      Tue Jul 08 17:00:02 2008
+++ trunk\core\al\kernel\al_ndi_cm.c    Tue Jul 08 17:05:04 2008
@@ -585,6 +585,7 @@ __ndi_complete_req_irp(
                __ndi_release_lock( &h_qp->p_irp_queue->csq, irql );
                __ndi_complete_irp( h_qp, Irp, code );
        }
+       al_destroy_cep( qp_get_al( h_qp ), &((al_conn_qp_t*)h_qp)->cid, TRUE );
        AL_EXIT( AL_DBG_NDI );
 }

-------------- next part --------------
A non-text attachment was scrubbed...
Name: nd_req_err_destroy_cep.patch
Type: application/octet-stream
Size: 495 bytes
Desc: nd_req_err_destroy_cep.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080708/b73d9ee9/attachment.obj>


More information about the ofw mailing list