]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit57e31890fecee63a63112aae332d5c43de419b53
treeefe1dc13245079333d10ce078e1d424ab337d42a
parent90935eba4d9fdf1d6d6ee841dd683f350aa9eb52
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: 4c774ef21449 ("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