[ofw] [PATCH 3/7] ib/cm: export CM only interface

Hefty, Sean sean.hefty at intel.com
Thu Jan 22 17:07:04 PST 2009


>You shouldn't have a problem here, and here's why:
>
>1. the callback is deref_al_obj
>2. you take a reference if kal_config_cep succeeds
>3. you're in the IOCTL handler which has a ref
>
>You could have many CEPs with a single QP as 'context', and as long as each CEP
>'holds' a reference on the QP you're fine.

gurgle... I still think there's a problem.  __ndi_send_rep() should not change the CEP callback or context until it verifies that the CEP does not already reference some other QP.  Otherwise, the QP currently associated with the CEP will have a reference on it that's never released.

Argh... what a mess.  What happens with REJ messages sent after a REQ?



More information about the ofw mailing list