diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2015-11-12 09:44:33 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2015-11-23 12:15:30 -0700 |
commit | 6f18dc893981e4daab29221d6a9771f3ce2dd8c5 (patch) | |
tree | cfe5790d5c6b237c474f8ee0683050dcbad3cbce /net/sunrpc/Kconfig | |
parent | 8005c49d9aea74d382f474ce11afbbc7d7130bec (diff) |
svcrdma: Do not send XDR roundup bytes for a write chunk
Minor optimization: when dealing with write chunk XDR roundup, do
not post a Write WR for the zero bytes in the pad. Simply update
the write segment in the RPC-over-RDMA header to reflect the extra
pad bytes.
The Reply chunk is also a write chunk, but the server does not use
send_write_chunks() to send the Reply chunk. That's OK in this case:
the server Upper Layer typically marshals the Reply chunk contents
in a single contiguous buffer, without a separate tail for the XDR
pad.
The comments and the variable naming refer to "chunks" but what is
really meant is "segments." The existing code sends only one
xdr_write_chunk per RPC reply.
The fix assumes this as well. When the XDR pad in the first write
chunk is reached, the assumption is the Write list is complete and
send_write_chunks() returns.
That will remain a valid assumption until the server Upper Layer can
support multiple bulk payload results per RPC.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/Kconfig')
0 files changed, 0 insertions, 0 deletions