diff options
| author | Kuniyuki Iwashima <[email protected]> | 2024-06-20 20:56:18 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-06-25 09:10:18 +0000 |
| commit | c4da4661d985fd3cbaea3ea6101e2dd0d2ad4b74 (patch) | |
| tree | 0a66ad0e3deebd7050b4418652d9ecff683ed6ce /net/unix/garbage.c | |
| parent | af_unix: Don't acquire unix_state_lock() for sock_i_ino(). (diff) | |
| download | kernel-c4da4661d985fd3cbaea3ea6101e2dd0d2ad4b74.tar.gz kernel-c4da4661d985fd3cbaea3ea6101e2dd0d2ad4b74.zip | |
af_unix: Remove U_LOCK_DIAG.
sk_diag_dump_icons() acquires embryo's lock by unix_state_lock_nested()
to fetch its peer.
The embryo's ->peer is set to NULL only when its parent listener is
close()d. Then, unix_release_sock() is called for each embryo after
unlinking skb by skb_dequeue().
In sk_diag_dump_icons(), we hold the parent's recvq lock, so we need
not acquire unix_state_lock_nested(), and peer is always non-NULL.
Let's remove unnecessary unix_state_lock_nested() and non-NULL test
for peer.
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
