diff options
| author | David S. Miller <davem@davemloft.net> | 2005-12-14 02:26:29 -0500 |
|---|---|---|
| committer | David S. Miller <davem@sunset.davemloft.net> | 2006-01-03 16:10:59 -0500 |
| commit | fbe9cc4a87030d5cad5f944ffaef6af7efd119e4 (patch) | |
| tree | f4e9ce6608e1b8b7e160e44e68853a2b6e5e84d5 /include/net | |
| parent | d83d8461f902c672bc1bd8fbc6a94e19f092da97 (diff) | |
[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')
| -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); | |||
| 13 | #define UNIX_HASH_SIZE 256 | 13 | #define UNIX_HASH_SIZE 256 |
| 14 | 14 | ||
| 15 | extern struct hlist_head unix_socket_table[UNIX_HASH_SIZE + 1]; | 15 | extern struct hlist_head unix_socket_table[UNIX_HASH_SIZE + 1]; |
| 16 | extern rwlock_t unix_table_lock; | 16 | extern spinlock_t unix_table_lock; |
| 17 | 17 | ||
| 18 | extern atomic_t unix_tot_inflight; | 18 | extern atomic_t unix_tot_inflight; |
| 19 | 19 | ||
