Skip to content

af_unix: Clean up unnecessary spin_lock(&sk->sk_peer_lock).

Kuniyuki Iwashima netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2af_unix: Set sk_peer_pid/sk_peer_cred locklessly for new socket.net/unix/af_unix.c+8 -30 replies
2/2af_unix: Don't hold client's sk_peer_lock in copy_peercred().net/unix/af_unix.c+2 -180 replies
2/2af_unix: Don't hold client's sk_peer_lock in copy_peercred().+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [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(-)
Signature · 1 line
2.30.2