]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: small optimization in tcp recvmsg()
authorEric Dumazet <edumazet@google.com>
Mon, 15 Nov 2021 19:02:40 +0000 (11:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Nov 2021 13:10:34 +0000 (13:10 +0000)
commitede5a9a4a55eeb1189d489ed8a6cbafe7497e64d
treee5bd0dd1290a879e31023cef54113e98fb876611
parent8cb660605b76cf840f8c3d6a2298fdd43d0a6f81
tcp: small optimization in tcp recvmsg()

When reading large chunks of data, incoming packets might
be added to the backlog from BH.

tcp recvmsg() detects the backlog queue is not empty, and uses
a release_sock()/lock_sock() pair to process this backlog.

We now have __sk_flush_backlog() to perform this
a bit faster.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c