]> git.baikalelectronics.ru Git - kernel.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)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 28 Jun 2019 15:17:47 +0000 (11:17 -0400)
commitb765c6be0e41dca42855da8340a46a2bb7263c9e
tree5aeb08a887ba0c77314a67f6d5f65e713d6f485c
parent3ef354dbb1885788083d5b4a0cc0b113745879f5
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: 35a57fc9f0fa ("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