RDMA/iwcm: Reject the connection when the cm_id is destroyed.
PATCH 1/1 RDMA/iwcm: Reject the connection when the cm_id is destroyed.
If the cm_id of a connect request is destroyed prior to the ULP accepting or rejecting the connection, then the provider never cleans up the connection. The iwcm should explicitly reject these connections if the cm_id is destroyed.
---
drivers/infiniband/core/iwcm.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/infiniband/core/iwcm.c +1 -0
@@ -362,6 +362,7 @@ static void destroy_cm_id(struct iw_cm_id *cm_id)* In either case, must tell the provider to reject. */ cm_id_priv->state =IW_CM_STATE_DESTROYING ; + cm_id->device->iwcm->reject (cm_id,NULL ,0 );break ;case IW_CM_STATE_CONN_SENT :case IW_CM_STATE_DESTROYING :
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20090908203358.14739.37133.stgit-T4OLL4TyM9aNDNWfRnPdfg@public.gmane.org
Thanks, applied
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html