SUNRPC: Convert svc_tcp_sendmsg to use bio_vecs directly
authorChuck Lever <chuck.lever@oracle.com>
Wed, 19 Jul 2023 18:31:03 +0000 (14:31 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 29 Aug 2023 21:45:22 +0000 (17:45 -0400)
commit2eb2b93581813b74c7174961126f6ec38eadb5a7
treefb853ebade59659620ed52b25bf3cc8bf58e0d18
parentd424797032c6e24b44037e6c7a2d32fd958300f0
SUNRPC: Convert svc_tcp_sendmsg to use bio_vecs directly

Add a helper to convert a whole xdr_buf directly into an array of
bio_vecs, then send this array instead of iterating piecemeal over
the xdr_buf containing the outbound RPC message.

Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
include/linux/sunrpc/xdr.h
net/sunrpc/svcsock.c
net/sunrpc/xdr.c