All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 net-next 0/7] af_unix: GC cleanup and optimisation.
@ 2025-11-15  2:08 Kuniyuki Iwashima
  2025-11-15  2:08 ` [PATCH v1 net-next 1/7] af_unix: Count cyclic SCC Kuniyuki Iwashima
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Kuniyuki Iwashima @ 2025-11-15  2:08 UTC (permalink / raw)
  To: David S . Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: Simon Horman, Kuniyuki Iwashima, Kuniyuki Iwashima, netdev

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.


Kuniyuki Iwashima (7):
  af_unix: Count cyclic SCC.
  af_unix: Simplify GC state.
  af_unix: Don't trigger GC from close() if unnecessary.
  af_unix: Don't call wait_for_unix_gc() on every sendmsg().
  af_unix: Refine wait_for_unix_gc().
  af_unix: Remove unix_tot_inflight.
  af_unix: Consolidate unix_schedule_gc() and wait_for_unix_gc().

 net/unix/af_unix.c |  7 +---
 net/unix/af_unix.h |  4 +-
 net/unix/garbage.c | 92 ++++++++++++++++++++++++----------------------
 3 files changed, 51 insertions(+), 52 deletions(-)

-- 
2.52.0.rc1.455.g30608eb744-goog


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-11-19  3:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-15  2:08 [PATCH v1 net-next 0/7] af_unix: GC cleanup and optimisation Kuniyuki Iwashima
2025-11-15  2:08 ` [PATCH v1 net-next 1/7] af_unix: Count cyclic SCC Kuniyuki Iwashima
2025-11-15  2:08 ` [PATCH v1 net-next 2/7] af_unix: Simplify GC state Kuniyuki Iwashima
2025-11-15  2:08 ` [PATCH v1 net-next 3/7] af_unix: Don't trigger GC from close() if unnecessary Kuniyuki Iwashima
2025-11-15  2:08 ` [PATCH v1 net-next 4/7] af_unix: Don't call wait_for_unix_gc() on every sendmsg() Kuniyuki Iwashima
2025-11-15  2:08 ` [PATCH v1 net-next 5/7] af_unix: Refine wait_for_unix_gc() Kuniyuki Iwashima
2025-11-15  2:08 ` [PATCH v1 net-next 6/7] af_unix: Remove unix_tot_inflight Kuniyuki Iwashima
2025-11-15  2:08 ` [PATCH v1 net-next 7/7] af_unix: Consolidate unix_schedule_gc() and wait_for_unix_gc() Kuniyuki Iwashima
2025-11-19  3:30 ` [PATCH v1 net-next 0/7] af_unix: GC cleanup and optimisation patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.