af_unix: GC cleanup and optimisation.
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
Patches in v1 All 7 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | af_unix: Count cyclic SCC.net/ | +21 | 0 replies | Applied |
| 2/7 | af_unix: Simplify GC state.net/ | +12 | 0 replies | Applied |
| 3/7 | af_unix: Don't trigger GC from close() if unnecessary.net/ net/ net/ | +19 | 0 replies | Applied |
| 4/7 | af_unix: Don't call wait_for_unix_gc() on every sendmsg().net/ net/ net/ | +6 | 0 replies | Applied |
| 5/7 | af_unix: Refine wait_for_unix_gc().net/ | +8 | 0 replies | Applied |
| 6/7 | af_unix: Remove unix_tot_inflight.net/ | +0 | 0 replies | Applied |
| 7/7 | af_unix: Consolidate unix_schedule_gc() and wait_for_unix_gc().net/ net/ net/ | +11 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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