[openib-general] Re: [PATCH 9 of 20] ipath - char devices for diagnostics and lightweight subnet management

Roland Dreier rdreier at cisco.com
Thu Mar 9 15:51:34 PST 2006


    Bryan> Yep, this is a real race, albeit incredibly unlikely.  I
    Bryan> just turned ipath_sma_alive into an atomic_t, and wrapped
    Bryan> the open/close code in spinlocks.

How does making it an atomic_t help?  I think you're only going to be
using atomic_set() and atomic_read(), and atomic_t doesn't provide
anything in that case.

 - R.



More information about the general mailing list