]> git.baikalelectronics.ru Git - kernel.git/commit
af_unix: Put a socket into a per-netns hash table.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Tue, 21 Jun 2022 17:19:12 +0000 (10:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jun 2022 11:59:43 +0000 (12:59 +0100)
commit0fc4ed5464d88759c4d2209cf22f482ff89ea7c5
tree843d49b6f5f23c768682e422f0f8b5bf50dc742f
parenta8b27c286e01868602e8e76211cc1fe9703b6328
af_unix: Put a socket into a per-netns hash table.

This commit replaces the global hash table with a per-netns one and removes
the global one.

We now link a socket in each netns's hash table so we can save some netns
comparisons when iterating through a hash bucket.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/af_unix.h
net/unix/af_unix.c
net/unix/diag.c