summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtsock.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2014-03-17 13:10:05 -0400
committerJ. Bruce Fields <bfields@redhat.com>2014-03-28 18:02:13 -0400
commit3cbe01a94c7b369f943f8a9d40394198d757cdd4 (patch)
tree565877c84255ce7d04ae04523526365f884555d2 /net/sunrpc/xprtsock.c
parent2e8c12e1b76536d723ae0501de0729ddf6a9142c (diff)
downloadop-kernel-dev-3cbe01a94c7b369f943f8a9d40394198d757cdd4.zip
op-kernel-dev-3cbe01a94c7b369f943f8a9d40394198d757cdd4.tar.gz
svcrdma: fix offset calculation for non-page aligned sge entries
The xdr_off value in dma_map_xdr gets passed to ib_dma_map_page as the offset into the page to be mapped. This calculation does not correctly take into account the case where the data starts at some offset into the page. Increment the xdr_off by the page_base to ensure that it is respected. Cc: Tom Tucker <tom@opengridcomputing.com> Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/xprtsock.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud