tmp_suning_uos_patched/net/sunrpc/xprtrdma
Tom Tucker bd7ea31b9e RPCRDMA: Fix to XDR page base interpretation in marshalling logic.
The RPCRDMA marshalling logic assumed that xdr->page_base was an
offset into the first page of xdr->page_list. It is in fact an
offset into the xdr->page_list itself, that is, it selects the
first page in the page_list and the offset into that page.

The symptom depended in part on the rpc_memreg_strategy, if it was
FRMR, or some other one-shot mapping mode, the connection would get
torn down on a base and bounds error. When the badly marshalled RPC
was retransmitted it would reconnect, get the error, and tear down the
connection again in a loop forever. This resulted in a hung-mount. For
the other modes, it would result in silent data corruption. This bug is
most easily reproduced by writing more data than the filesystem
has space for.

This fix corrects the page_base assumption and otherwise simplifies
the iov mapping logic.

Signed-off-by: Tom Tucker <tom@ogc.us>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2011-03-11 15:39:27 -05:00
..
Makefile rdma: makefile 2008-02-01 16:42:14 -05:00
rpc_rdma.c RPCRDMA: Fix to XDR page base interpretation in marshalling logic. 2011-03-11 15:39:27 -05:00
svc_rdma_marshal.c rdma: ONCRPC RDMA protocol marshalling 2008-02-01 16:42:14 -05:00
svc_rdma_recvfrom.c svcrdma: Cleanup DMA unmapping in error paths. 2010-10-18 19:51:32 -04:00
svc_rdma_sendto.c svcrdma: Cleanup DMA unmapping in error paths. 2010-10-18 19:51:32 -04:00
svc_rdma_transport.c SUNRPC: Remove resource leak in svc_rdma_send_error() 2011-03-10 15:04:54 -05:00
svc_rdma.c sunrpc/xprtrdma: clean up workqueue usage 2010-10-21 10:11:45 -04:00
transport.c sunrpc/xprtrdma: clean up workqueue usage 2010-10-21 10:11:45 -04:00
verbs.c rpcrdma: Fix SQ size calculation when memreg is FRMR 2010-08-11 12:47:24 -04:00
xprt_rdma.h RPC/RDMA: harden connection logic against missing/late rdma_cm upcalls. 2008-10-10 15:13:31 -04:00