[openib-general] Re: [RFC] userspace CM/verbs QP

Libor Michalek libor at topspin.com
Thu Mar 3 18:21:21 PST 2005


On Thu, Mar 03, 2005 at 06:02:20PM -0800, Roland Dreier wrote:
>     Libor>  I was thinking of maybe ref counting the access, either in
>     Libor> ib_qp or ib_uobject. Adding a pair of functions, lookup and
>     Libor> return, to manage the ref count...
> 
> I think it makes sense to put a ref count in struct ib_uobject.  That
> would make it easier to enforce things like "make sure my CQs don't
> get freed while I create this QP" also.  Then I could encapsulate the
> whole IDR locking mess.

  When you say locking mess, do you mean accessing and potentially
deleting the object which is referenced by the IDR table outside
of the lock used to access the IDR? 

-Libor



More information about the general mailing list