]> 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)
commit7a1f9fd82899917b6248d9b9c0463d2cf33bec4c
treeefe1dc13245079333d10ce078e1d424ab337d42a
parent44c8f59bf256d545dc8e6b04552b4d0ca188380a
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: cfcc054d8547 ("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