[openib-general] atomic_read in ib_unregister_mad_agent()

Roland Dreier roland at topspin.com
Fri Oct 29 17:55:04 PDT 2004


    Shirley> It's better to use semaphore instead of atomic_read to
    Shirley> check the reference count 0 in wait_event() in
    Shirley> ib_unregister_mad_agent(). Agree?

I don't see how one uses a semaphore to wait for a reference count to
become zero (semaphores sleep until their count is non-zero).

 - R.



More information about the general mailing list