[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240128103732.18185-1-kuniyu@amazon.com>
Date: Sun, 28 Jan 2024 02:37:30 -0800
From: Kuniyuki Iwashima <kuniyu@...zon.com>
To: "David S. Miller" <davem@...emloft.net>, Eric Dumazet
<edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni
<pabeni@...hat.com>
CC: Kent Overstreet <kent.overstreet@...ux.dev>, Kuniyuki Iwashima
<kuniyu@...zon.com>, Kuniyuki Iwashima <kuni1840@...il.com>,
<netdev@...r.kernel.org>
Subject: [PATCH v1 net-next 0/2] af_unix: Clean up unnecessary spin_lock(&sk->sk_peer_lock).
Except for updating sk_peer_pid/sk_peer_cred, we do not need to hold
sk_peer_lock during initialisation.
This series removes unnecessary spin_lock() and spin_unlock() in such
places.
Kuniyuki Iwashima (2):
af_unix: Set sk_peer_pid/sk_peer_cred locklessly for new socket.
af_unix: Don't hold client's sk_peer_lock in copy_peercred().
net/unix/af_unix.c | 31 ++++++++++---------------------
1 file changed, 10 insertions(+), 21 deletions(-)
--
2.30.2
Powered by blists - more mailing lists