svcrdma: fix bounce buffers for unaligned offsets and multiple pages
authorDan Aloni <dan@kernelim.com>
Fri, 2 Oct 2020 19:33:43 +0000 (22:33 +0300)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 16 Oct 2020 19:15:04 +0000 (15:15 -0400)
commitc327a310ec4d6ecbea13185ed56c11def441d9ab
treecc6107511a88d2d02c9e9393040770cd87ad9079
parentc1488428a8daf5257a12dcec1739147e6aaf9557
svcrdma: fix bounce buffers for unaligned offsets and multiple pages

This was discovered using O_DIRECT at the client side, with small
unaligned file offsets or IOs that span multiple file pages.

Fixes: e248aa7be86 ("svcrdma: Remove max_sge check at connect time")
Signed-off-by: Dan Aloni <dan@kernelim.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/xprtrdma/svc_rdma_sendto.c