]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Merge branch 'af_unix-gc-cleanup-and-optimisation'
authorJakub Kicinski <kuba@kernel.org>
Wed, 19 Nov 2025 03:19:34 +0000 (19:19 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 19 Nov 2025 03:19:34 +0000 (19:19 -0800)
Kuniyuki Iwashima says:

====================
af_unix: GC cleanup and optimisation.

Currently, AF_UNIX GC is triggered from close() and sendmsg()
based on the number of inflight AF_UNIX sockets.

This is because the old GC implementation had no idea of the
shape of the graph formed by SCM_RIGHTS references.

The new GC knows whether cyclic references (could) exist.

This series refines such conditions not to trigger GC unless
really needed.
====================

Link: https://patch.msgid.link/20251115020935.2643121-1-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Trivial merge