]> www.infradead.org Git - users/jedix/linux-maple.git/commit
af_unix: Remove unix_unhash()
authorMichal Luczaj <mhal@rbox.co>
Wed, 9 Apr 2025 12:50:58 +0000 (14:50 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 11 Apr 2025 00:32:57 +0000 (17:32 -0700)
commit709894c52c1cafa36fe2047ba5a0b83bdf398133
tree646a7eeba082b554e04fb9e418059be155a0d557
parentcb7103298d1c5d8f71aa79283b64ca01c30264c7
af_unix: Remove unix_unhash()

Dummy unix_unhash() was introduced for sockmap in commit 94531cfcbe79
("af_unix: Add unix_stream_proto for sockmap"), but there's no need to
implement it anymore.

->unhash() is only called conditionally: in unix_shutdown() since commit
d359902d5c35 ("af_unix: Fix NULL pointer bug in unix_shutdown"), and in BPF
proto's sock_map_unhash() since commit 5b4a79ba65a1 ("bpf, sockmap: Don't
let sock_map_{close,destroy,unhash} call itself").

Remove it.

Signed-off-by: Michal Luczaj <mhal@rbox.co>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250409-cleanup-drop-unix-unhash-v1-1-1659e5b8ee84@rbox.co
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/unix/af_unix.c