diff options
author | Arjun Roy <arjunroy@google.com> | 2020-12-02 14:53:43 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-12-04 13:40:52 -0800 |
commit | 2cd81161848daa9c1b5ba13ceb6ff067fbb86aa9 (patch) | |
tree | 2cb311ff0f097436d225885b7d9e1b25163de9f3 /kernel/kmod.c | |
parent | 18fb76ed53865c1b5d5f0157b1b825704590beb5 (diff) | |
download | lwn-2cd81161848daa9c1b5ba13ceb6ff067fbb86aa9.tar.gz lwn-2cd81161848daa9c1b5ba13ceb6ff067fbb86aa9.zip |
net-tcp: Introduce tcp_recvmsg_locked().
Refactor tcp_recvmsg() by splitting it into locked and unlocked
portions. Callers already holding the socket lock and not using
ERRQUEUE/cmsg/busy polling can simply call tcp_recvmsg_locked().
This is in preparation for a short-circuit copy performed by
TCP receive zerocopy for small (< PAGE_SIZE, or otherwise requested
by the user) reads.
Signed-off-by: Arjun Roy <arjunroy@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'kernel/kmod.c')
0 files changed, 0 insertions, 0 deletions