Hi Sean,
I have the following issue: The IB driver can't be unloaded after running 
applications over RDS.
I saw that the 'dev_remove' counter does not reach 0 value on the passive side 
(after connection establishment).

Please review the following patch:

CMA: Enable conn_id remove on the passive side after
connection establishment.

Signed-off-by: Vladimir Sokolovsky <[EMAIL PROTECTED]>
---
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index 0751697..656d6df 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -1122,8 +1122,10 @@ static int cma_req_handler(struct ib_cm_id *cm_id, 
struct ib_cm_event *ib_event)
        cm_id->cm_handler = cma_ib_handler;

        ret = conn_id->id.event_handler(&conn_id->id, &event);
-       if (!ret)
+       if (!ret) {
+               cma_enable_remove(conn_id);
                goto out;
+       }

        /* Destroy the CM ID by returning a non-zero value. */
        conn_id->cm_id.ib = NULL;

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to