Re: [PATCH] convert af_unix to use a spinlock instead of rwlock

2006-01-03 Thread David S. Miller
From: Benjamin LaHaise <[EMAIL PROTECTED]> Date: Fri, 16 Dec 2005 15:01:41 -0500 > 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. Also

[PATCH] convert af_unix to use a spinlock instead of rwlock

2005-12-16 Thread Benjamin LaHaise
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. -ben diff --git a/include/net/af_unix.h b/include/net/af_unix.h index 3f302a