svcrdma: Fix dma map direction for rdma read targets
authorSteve Wise <swise@opengridcomputing.com>
Fri, 3 Apr 2009 20:18:24 +0000 (15:18 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Sat, 25 Apr 2009 22:11:14 +0000 (18:11 -0400)
commitd0687be7c7ae21461da4438d5fd059b48487bfe1
tree06036d8b604f6470a52a121aecd41f6e4a4cec23
parent091069740304c979f957ceacec39c461d0192158
svcrdma: Fix dma map direction for rdma read targets

The nfs server rdma transport was mapping rdma read target pages for
TO_DEVICE instead of FROM_DEVICE.  This causes data corruption on non
cache-coherent systems if frmrs are used.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
net/sunrpc/xprtrdma/svc_rdma_recvfrom.c