xprtrdma: Fix "bytes registered" accounting
authorChuck Lever <chuck.lever@oracle.com>
Wed, 3 Jan 2018 20:38:09 +0000 (15:38 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 23 Jan 2018 14:44:38 +0000 (09:44 -0500)
commitaae2349c49198e5dc7376519201cb4647a902e0f
treeefe1dc13245079333d10ce078e1d424ab337d42a
parentae7246762530af00109c3fb8a30031da054c0aa0
xprtrdma: Fix "bytes registered" accounting

The contents of seg->mr_len changed when ->ro_map stopped returning
the full chunk length in the first segment. Count the full length of
each Write chunk, not the length of the first segment (which now can
only be as large as a page).

Fixes: 9d6b04097882 ("xprtrdma: Place registered MWs on a ... ")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/rpc_rdma.c