aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/af_unix.h
diff options
context:
space:
mode:
authorKuniyuki Iwashima <[email protected]>2022-06-21 17:19:13 +0000
committerDavid S. Miller <[email protected]>2022-06-22 11:59:43 +0000
commit2f7ca90a0188b57a54d3b1159eb7874427a7e07a (patch)
treed1eec229ee1d66c1a9265f4fc411062b5f9f749b /include/net/af_unix.h
parentaf_unix: Put a socket into a per-netns hash table. (diff)
downloadkernel-2f7ca90a0188b57a54d3b1159eb7874427a7e07a.tar.gz
kernel-2f7ca90a0188b57a54d3b1159eb7874427a7e07a.zip
af_unix: Remove unix_table_locks.
unix_table_locks are to protect the global hash table, unix_socket_table. The previous commit removed it, so let's clean up the unnecessary locks. Here is a test result on EC2 c5.9xlarge where 10 processes run concurrently in different netns and bind 100,000 sockets for each. without this series : 1m 38s with this series : 11s It is ~10x faster because the global hash table is split into 10 netns in this case. Signed-off-by: Kuniyuki Iwashima <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/net/af_unix.h')
-rw-r--r--include/net/af_unix.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/net/af_unix.h b/include/net/af_unix.h
index b1748c9b6db2..480fa579787e 100644
--- a/include/net/af_unix.h
+++ b/include/net/af_unix.h
@@ -21,7 +21,6 @@ struct sock *unix_peer_get(struct sock *sk);
#define UNIX_HASH_BITS 8
extern unsigned int unix_tot_inflight;
-extern spinlock_t unix_table_locks[UNIX_HASH_SIZE];
struct unix_address {
refcount_t refcnt;