From: Kuniyuki Iwashima <kuniyu@amazon.com>
To: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: Amit Shah <aams@amazon.com>,
Kuniyuki Iwashima <kuniyu@amazon.com>,
Kuniyuki Iwashima <kuni1840@gmail.com>, <netdev@vger.kernel.org>
Subject: [PATCH v1 net-next 0/6] af_unix: Introduce per-netns socket hash table.
Date: Thu, 16 Jun 2022 16:47:08 -0700 [thread overview]
Message-ID: <20220616234714.4291-1-kuniyu@amazon.com> (raw)
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
next reply other threads:[~2022-06-16 23:48 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-16 23:47 Kuniyuki Iwashima [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220616234714.4291-1-kuniyu@amazon.com \
--to=kuniyu@amazon.com \
--cc=aams@amazon.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=kuni1840@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).