net: call prot->release_cb() when processing backlog
authorEric Dumazet <edumazet@google.com>
Mon, 11 Sep 2023 17:05:30 +0000 (17:05 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 12 Sep 2023 17:10:01 +0000 (19:10 +0200)
commit4505dc2a522826975167823f64f0896bac1323fb
treeca24379daf4c8c19ce173fdfd3bc510366cb9ad5
parent11445469dec803730ac7f78a5ad2a5ed131fa941
net: call prot->release_cb() when processing backlog

__sk_flush_backlog() / sk_flush_backlog() are used
when TCP recvmsg()/sendmsg() process large chunks,
to not let packets in the backlog too long.

It makes sense to call tcp_release_cb() to also
process actions held in sk->sk_tsq_flags for smoother
scheduling.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/sock.c