[openib-general] Re: [PATCH] cm refcount race fix

Roland Dreier rdreier at cisco.com
Mon May 8 15:15:21 PDT 2006


    Sean> Could we use atomic_dec_and_lock() instead?  This would keep
    Sean> refcount atomic, but use a spinlock to synchronize with
    Sean> destruction.

Hmm, how does that help?

Just going to a plain integer with a spinlock to protect it seems
simple and clear.

 - R.



More information about the general mailing list