Skip to content

ipv6: prevent fib6_run_gc() contention

Michal Kubecek netdev 2 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v11 patch 8 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2ipv6: prevent fib6_run_gc() contentioninclude/net/ip6_fib.h net/ipv6/ip6_fib.c net/ipv6/ndisc.c +1 more+13 -160 replies
2/2ipv6: update ip6_rt_last_gc every time GC is runnet/ipv6/ip6_fib.c net/ipv6/route.c+6 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH net v2 0/2] ipv6: prevent fib6_run_gc() contention

On a high-traffic router with many processors and many IPv6 dst entries, soft lockup in fib6_run_gc() can occur when number of entries reaches gc_thresh. Prevent this by not waiting for the lock if garbage collector is already running as we would only run it again as soon as it finished.

v2: as suggested by Eric Dumazet, move update of ip6_rt_last_gc into
fib6_run_gc() so that it reflects every run of garbage collector rather than only those via ip6_dst_gc()

Michal Kubecek (2):
ipv6: prevent fib6_run_gc() contention
ipv6: update ip6_rt_last_gc every time GC is run

 include/net/ip6_fib.h |  2 +-
 net/ipv6/ip6_fib.c    | 25 +++++++++++++------------
 net/ipv6/ndisc.c      |  4 ++--
 net/ipv6/route.c      |  8 +++-----
 4 files changed, 19 insertions(+), 20 deletions(-)
Signature · 1 line
1.8.1.4