Re: [PATCH net] net: count last skb of each sk_backlog pass in __release_sock()

From: Eric Dumazet

Date: Mon Nov 02 2026 - 03:21:25 EST


Le lun. 2 nov. 2026 à 06:35, Ray Zhang <sgzhang@xxxxxxxxxx> a écrit :
>
> On Sun, Nov 1, 2026 at 9:15 AM Kuniyuki Iwashima <kuniyu@xxxxxxxxxx> wrote:
> >
> > On Sun, 01 Nov 2026 00:51:45 -0700, Ray Zhang wrote:
> > > Running 500 concurrent TCPv6 streams (neper "tcp_stream -6 -T 1 -F 500")
> > > on a 2-core Cortex-A53 (CONFIG_PREEMPT_NONE=y, HZ=1000, LATENCY_WARN)
> >
> > I guess you tested it on 6.18, but note that CONFIG_PREEMPT_NONE
> > is no longer selectable on arm64 since 7dadeaa6e851.
>
> Right, we hit and tested this on 6.18 -- thanks for pointing out
> 7dadeaa6e851 and for the review!
>
> On mainline, cond_resched() in __release_sock() still applies to
> !ARCH_HAS_PREEMPT_LAZY configs (e.g. CONFIG_PREEMPT_VOLUNTARY on
> 32-bit arm/mips/sparc, or CONFIG_PREEMPT_NONE with ARCH_NO_PREEMPT),
> and landing it in net lets 6.18.y stable backport it cleanly.

SGTM, thanks!

Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>