]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
SUNRPC: Fix up calculation of client message length
authorTrond Myklebust <trondmy@gmail.com>
Mon, 24 Jun 2019 23:15:44 +0000 (19:15 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2019 11:13:40 +0000 (13:13 +0200)
commit5dfe49ca70e10eef208b6d4a673f34d01bff0293
treed60777b9a7bb738858ee07cbbc38312dab0a0e75
parentb187fae6ee297f3bba913cfc8b6c2181bccae3dd
SUNRPC: Fix up calculation of client message length

commit 7e3d3620974b743b91b1f9d0660061b1de20174c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/xprtsock.c