net/tcp: optimise io_uring zc ubuf refcounting
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 15 May 2023 16:06:37 +0000 (17:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 May 2023 07:37:55 +0000 (08:37 +0100)
commita7533584728d366f11b210d0e8a2fad03109c669
treeea527346b81a27e1bd3d80a2ea1ff207034e51b4
parenteea96a3e2c909a055005ac65dde356b36cabc4ed
net/tcp: optimise io_uring zc ubuf refcounting

io_uring keeps a reference to ubuf_info during submission, so if
tcp_sendmsg_locked() sees msghdr::msg_ubuf in can be sure the buffer
will be kept alive and doesn't need to additionally pin it.

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