[openib-general] on calling rdma_disconnect from non sleepablecontext

Roland Dreier rdreier at cisco.com
Thu Feb 2 09:08:27 PST 2006


    Or> Can you elaborate a little more on the "---might-- sleep" with
    Or> regard to the Mellanox hardware/firmware? empirically i saw
    Or> (and could not understand) that on 99% of the cases where my
    Or> code called ib_modify_qp (via rdma_disconnect) and
    Or> ib_destory_qp (directly) from non sleepable context (tasklet)
    Or> it just worked fine.

    Or> AFAIK since the mthca driver works in "events" command mode,
    Or> it would always sleep after issuing a command to the FW till
    Or> the command completion is reported to the commands EQ and then
    Or> there's a wakeup.

It is somewhat strange that it worked for you.  My only guess is that
the command completed quickly enough that the command code didn't
actually hit the schedulera and try to switch tasks.

 - R.



More information about the general mailing list