diff options
| author | David S. Miller <[email protected]> | 2005-12-14 07:26:29 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2006-01-03 21:10:59 +0000 |
| commit | fbe9cc4a87030d5cad5f944ffaef6af7efd119e4 (patch) | |
| tree | f4e9ce6608e1b8b7e160e44e68853a2b6e5e84d5 /include/net/af_unix.h | |
| parent | [IP_SOCKGLUE]: Remove most of the tcp specific calls (diff) | |
| download | kernel-fbe9cc4a87030d5cad5f944ffaef6af7efd119e4.tar.gz kernel-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 <[email protected]>
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; |
