Netdev List
 help / color / mirror / Atom feed
* [PATCH v1 net-next 0/6] af_unix: Introduce per-netns socket hash table.
@ 2022-06-16 23:47 Kuniyuki Iwashima
  2022-06-16 23:47 ` [PATCH v1 net-next 1/6] af_unix: Clean up some sock_net() uses Kuniyuki Iwashima
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Kuniyuki Iwashima @ 2022-06-16 23:47 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: Amit Shah, Kuniyuki Iwashima, Kuniyuki Iwashima, netdev

This series replaces unix_socket_table with a per-netns hash table and
reduce lock contention.

Note the 3rd-6th patches can be a single patch, but for ease of review,
they are split into small changes without breakage.


Kuniyuki Iwashima (6):
  af_unix: Clean up some sock_net() uses.
  af_unix: Include the whole hash table size in UNIX_HASH_SIZE.
  af_unix: Define a per-netns hash table.
  af_unix: Acquire/Release per-netns hash table's locks.
  af_unix: Put a socket into a per-netns hash table.
  af_unix: Remove unix_table_locks.

 include/net/af_unix.h    |  10 +-
 include/net/netns/unix.h |   2 +
 net/unix/af_unix.c       | 213 +++++++++++++++++++++------------------
 net/unix/diag.c          |  47 ++++-----
 4 files changed, 143 insertions(+), 129 deletions(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-06-20 16:53 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-16 23:47 [PATCH v1 net-next 0/6] af_unix: Introduce per-netns socket hash table Kuniyuki Iwashima
2022-06-16 23:47 ` [PATCH v1 net-next 1/6] af_unix: Clean up some sock_net() uses Kuniyuki Iwashima
2022-06-16 23:47 ` [PATCH v1 net-next 2/6] af_unix: Include the whole hash table size in UNIX_HASH_SIZE Kuniyuki Iwashima
2022-06-16 23:47 ` [PATCH v1 net-next 3/6] af_unix: Define a per-netns hash table Kuniyuki Iwashima
2022-06-17  4:23   ` Eric Dumazet
2022-06-17  5:33     ` Kuniyuki Iwashima
2022-06-17  6:08       ` Eric Dumazet
2022-06-17  6:57         ` Kuniyuki Iwashima
2022-06-17  8:00           ` Eric Dumazet
2022-06-17 17:52             ` Kuniyuki Iwashima
2022-06-17 18:17   ` kernel test robot
2022-06-17 20:44     ` Kuniyuki Iwashima
2022-06-16 23:47 ` [PATCH v1 net-next 4/6] af_unix: Acquire/Release per-netns hash table's locks Kuniyuki Iwashima
2022-06-20  6:10   ` [af_unix] b4813d5914: WARNING:possible_recursive_locking_detected kernel test robot
2022-06-20 16:47     ` Kuniyuki Iwashima
2022-06-16 23:47 ` [PATCH v1 net-next 5/6] af_unix: Put a socket into a per-netns hash table Kuniyuki Iwashima
2022-06-16 23:47 ` [PATCH v1 net-next 6/6] af_unix: Remove unix_table_locks Kuniyuki Iwashima

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox