Skip to content

af_unix: GC cleanup and optimisation.

Kuniyuki Iwashima netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesApplied 7/7

Patches in v1 All 7 applied

#Subject and filesSizeRepliesApplied
1/7af_unix: Count cyclic SCC.net/unix/garbage.c+21 -100 repliesApplied
2/7af_unix: Simplify GC state.net/unix/garbage.c+12 -90 repliesApplied
3/7af_unix: Don't trigger GC from close() if unnecessary.net/unix/af_unix.c net/unix/af_unix.h net/unix/garbage.c+19 -140 repliesApplied
4/7af_unix: Don't call wait_for_unix_gc() on every sendmsg().net/unix/af_unix.c net/unix/af_unix.h net/unix/garbage.c+6 -80 repliesApplied
5/7af_unix: Refine wait_for_unix_gc().net/unix/garbage.c+8 -130 repliesApplied
6/7af_unix: Remove unix_tot_inflight.net/unix/garbage.c+0 -30 repliesApplied
7/7af_unix: Consolidate unix_schedule_gc() and wait_for_unix_gc().net/unix/af_unix.c net/unix/af_unix.h net/unix/garbage.c+11 -210 repliesApplied

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/7] 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.

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(-)
Signature · 1 line
2.52.0.rc1.455.g30608eb744-goog