Hi,

I think there is a potential deadlock when disconnecting from the CM.
Roland, can you look at this patch and check if it is needed.

Thanks
Ishai

----------------------------------------------------------------------

Avoid a potential dead-lock.
In srp_disconnect_target there is a call to ib_send_cm_dreq 
and a wait for completion 
If when getting DREP there is no comp no one will end this wait

Signed-off-by: Ishai Rabinovitz <[EMAIL PROTECTED]>

Index: last_stable/drivers/infiniband/ulp/srp/ib_srp.c
===================================================================
--- last_stable.orig/drivers/infiniband/ulp/srp/ib_srp.c        2006-04-17 
10:03:08.000000000 +0300
+++ last_stable/drivers/infiniband/ulp/srp/ib_srp.c     2006-04-17 
10:06:19.000000000 +0300
@@ -1194,6 +1194,7 @@ static int srp_cm_handler(struct ib_cm_i
                break;
 
        case IB_CM_DREP_RECEIVED:
+               comp = 1;
                break;
 
        case IB_CM_TIMEWAIT_EXIT:
-- 
Ishai Rabinovitz
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

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

Reply via email to