]> 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)
commitafbb432e148b08f0699edb2ce0ae931be44b03d5
tree5aeb08a887ba0c77314a67f6d5f65e713d6f485c
parent548ae98b097387d8ee0922fc73034cda03bac041
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: f3bd3e19c5b4 ("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