[openib-general] [CM] calling ib_destroy_cm_id never ends (and sometimes hang the machine)

Dotan Barak dotanb at dev.mellanox.co.il
Mon Nov 20 08:12:00 PST 2006


Hi Sean.
I'm working in the following system:
*************************************************************
Host Architecture : x86_64
Linux Distribution: Red Hat Enterprise Linux AS release 4 (Nahant Update 3)
Kernel Version    : 2.6.9-34.ELsmp
GCC Version       : gcc (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2)
Memory size       : 4039892 kB
Driver Version    : OFED 1.1
HCA ID(s)         : mthca0
HCA model(s)      : 25208
FW version(s)     : 4.7.600
Board(s)          : MT_00A0010001
*************************************************************

In the CM testing i have the following scenario:

Side A: call ib_cm_listen (which passes)
<sync between the two sides>
SIDE B: call ib_send_cm_req (which passes)
SIDE A:get the IB_CM_REQ_RECEIVED event and return a non zero value in 
the CM event handler
SIDE B:get the IB_CM_REJ_RECEIVED event and return a non zero value in 
the CM event handler

When i try to clean the resources and call ib_destroy_cm_id:
    in SIDE A: everything is just fine
    in SIDE B: this call never ends and sometimes the machine hangs

If after getting the IB_CM_REJ_RECEIVED, SIDE B call ib_send_cm_rep, the 
machine hangs too.

Do you have any idea what the problem is?

Thanks
Dotan




More information about the general mailing list