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 _______________________________________________ openib-general mailing list [email protected] http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
