net/tcp: don't peek at tail for io_uring zc
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 15 May 2023 16:06:36 +0000 (17:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 May 2023 07:37:54 +0000 (08:37 +0100)
commiteea96a3e2c909a055005ac65dde356b36cabc4ed
tree6a6cbb1c04d7e0c8a1ade0856567122a8bdf94c1
parent833e24aeb4d9a4803af3b836464df01293ce9041
net/tcp: don't peek at tail for io_uring zc

Move tcp_write_queue_tail() to SOCK_ZEROCOPY specific flag as zerocopy
setup for msghdr->ubuf_info doesn't need to peek into the last request.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c