mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
SUNRPC: Send RPC message on TCP with a single sock_sendmsg() call
There is now enough infrastructure in place to combine the stream record marker into the biovec array used to send each outgoing RPC message on TCP. The whole message can be more efficiently sent with a single call to sock_sendmsg() using a bio_vec iterator. Note that this also helps with RPC-with-TLS: the TLS implementation can now clearly see where the upper layer message boundaries are. Before, it would send each component of the xdr_buf (record marker, head, page payload, tail) in separate TLS records. Suggested-by: David Howells <dhowells@redhat.com> Reviewed-by: David Howells <dhowells@redhat.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
@@ -38,6 +38,8 @@ struct svc_sock {
|
||||
/* Number of queued send requests */
|
||||
atomic_t sk_sendqlen;
|
||||
|
||||
struct page_frag_cache sk_frag_cache;
|
||||
|
||||
struct completion sk_handshake_done;
|
||||
|
||||
struct page * sk_pages[RPCSVC_MAXPAGES]; /* received data */
|
||||
|
||||
Reference in New Issue
Block a user