tcp: small optimization in tcp recvmsg()
mainline inclusion from mainline-v5.17-rc1 commit 93afcfd1 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I65HYE Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=93afcfd1db35882921b2521a637c78755c27b02c --------------------------- 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> (cherry picked from commit 93afcfd1) Signed-off-by:
Liu Jian <liujian56@huawei.com>
Loading
Please sign in to comment