From: James Lentini Date: Mon, 10 Dec 2007 16:24:48 +0000 (-0500) Subject: SUNRPC xprtrdma: fix XDR tail buf marshalling for all ops X-Git-Tag: v2.6.24-rc6~56^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50e1092b3a119bb4660bb6bd2e1749dc2d8ac62e;p=pandora-kernel.git SUNRPC xprtrdma: fix XDR tail buf marshalling for all ops rpcrdma_convert_iovs is passed an xdr_buf representing either an RPC request or an RPC reply. In the case of a request, several calculations and tests involving pos are unnecessary. In the case of a reply, several calculations and tests involving pos are incorrect (the code tests pos against the reply xdr buf's len field, which is always 0 at the time rpcrdma_convert_iovs is executed). This change removes the incorrect/unnecessary calculations and tests involving pos. This fixes an observed problem when reading certain file sizes over NFS/RDMA. Signed-off-by: Tom Tucker Signed-off-by: Tom Talpey Signed-off-by: James Lentini Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed