[AF_UNIX]: Convert to use a spinlock instead of rwlock
authorBenjamin LaHaise <bcrl@kvack.org>
Tue, 3 Jan 2006 22:10:46 +0000 (14:10 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Jan 2006 22:10:46 +0000 (14:10 -0800)
From: Benjamin LaHaise <bcrl@kvack.org>

In af_unix, a rwlock is used to protect internal state.  At least on my
P4 with HT it is faster to use a spinlock due to the simpler memory
barrier used to unlock.  This patch raises bw_unix to ~690K/s.

Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found