SUNRPC: Fix up calculation of client message length
authorTrond Myklebust <trondmy@gmail.com>
Mon, 24 Jun 2019 23:15:44 +0000 (19:15 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 28 Jun 2019 15:17:47 +0000 (11:17 -0400)
commit7e3d3620974b743b91b1f9d0660061b1de20174c
tree5aeb08a887ba0c77314a67f6d5f65e713d6f485c
parent19d55046cd824baab53534ba7e7f99945c6fdcb1
SUNRPC: Fix up calculation of client message length

In the case where a record marker was used, xs_sendpages() needs
to return the length of the payload + record marker so that we
operate correctly in the case of a partial transmission.
When the callers check return value, they therefore need to
take into account the record marker length.

Fixes: 06b5fc3ad94e ("Merge tag 'nfs-rdma-for-5.1-1'...")
Cc: stable@vger.kernel.org # 5.1+
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtsock.c