On Wed, 2010-03-24 at 09:12 -0700, Suresh Siddha wrote:
Sure, but the rwlock_t is unfair and can degrade into much worse
performance than the spinlock.
Thing is, rwlock_t needs to write to the cacheline for each read
acquire, so unless the hold time is much-much longer than the cacheline
bounce time, its just not worth it, but since its a rwlock_t it should
be have short hold time, hence its a useless construct :-)
--