[openib-general] [PATCH] ib_mad: In ib_mad_complete_recv, decrement agent refcount when not fully reassembled and when no request found

Hal Rosenstock
Mon Oct 25 11:31:37 PDT 2004


On Mon, 2004-10-25 at 14:22, Sean Hefty wrote:
> The reference taken for the receive is made by the MAD layer itself, so the client isn't aware that 
> one was taken.  If the client deregisters the MAD service at the same time that a MAD is received, 
> then the reference from the registration will have been released, leaving only the reference from 
> the receive being held.  So, in the case of a non-match, we need to release the reference, but also 
> check to see if that was the last reference held.

OK. It seems to apply to both as you said in your original email. I will
generate a patch for this.

-- Hal



More information about the openib-general mailing list