diff options
author | David S. Miller <davem@davemloft.net> | 2005-12-14 08:26:29 +0100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-01-03 22:10:59 +0100 |
commit | fbe9cc4a87030d5cad5f944ffaef6af7efd119e4 (patch) | |
tree | f4e9ce6608e1b8b7e160e44e68853a2b6e5e84d5 /include/net/af_unix.h | |
parent | [IP_SOCKGLUE]: Remove most of the tcp specific calls (diff) | |
download | linux-fbe9cc4a87030d5cad5f944ffaef6af7efd119e4.tar.xz linux-fbe9cc4a87030d5cad5f944ffaef6af7efd119e4.zip |
[AF_UNIX]: Use spinlock for unix_table_lock
This lock is actually taken mostly as a writer,
so using a rwlock actually just makes performance
worse especially on chips like the Intel P4.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/af_unix.h')
-rw-r--r-- | include/net/af_unix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/af_unix.h b/include/net/af_unix.h index b5d785ab4a0e..3f302ae98c03 100644 --- a/include/net/af_unix.h +++ b/include/net/af_unix.h @@ -13,7 +13,7 @@ extern void unix_gc(void); #define UNIX_HASH_SIZE 256 extern struct hlist_head unix_socket_table[UNIX_HASH_SIZE + 1]; -extern rwlock_t unix_table_lock; +extern spinlock_t unix_table_lock; extern atomic_t unix_tot_inflight; |