OSDN Git Service

SUNRPC: Convert svc_udp_sendto() to use the per-socket bio_vec array
authorChuck Lever <chuck.lever@oracle.com>
Wed, 19 Jul 2023 18:31:16 +0000 (14:31 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 29 Aug 2023 21:45:22 +0000 (17:45 -0400)
commitbaabf59c24145612e4a975f459a5024389f13f5d
treeeb2a6e2fdce90b23287baf5185336ec4da2b5bfa
parente18e157bb5c8c1cd8a9ba25acfdcf4f3035836f4
SUNRPC: Convert svc_udp_sendto() to use the per-socket bio_vec array

Commit da1661b93bf4 ("SUNRPC: Teach server to use xprt_sock_sendmsg
for socket sends") modified svc_udp_sendto() to use xprt_sock_sendmsg()
because we originally believed xprt_sock_sendmsg() would be needed
for TLS support. That does not actually appear to be the case.

In addition, the linkage between the client and server send code has
been a bit of a maintenance headache because of the distinct ways
that the client and server handle memory allocation.

Going forward, eventually the XDR layer will deal with its buffers
in the form of bio_vec arrays, so convert this function accordingly.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/svcsock.c