]> git.neil.brown.name Git - history.git/commit
If an RPC request has to be resent due to a timeout, it turns out
authorTrond Myklebust <trond.myklebust@fys.uio.no>
Thu, 21 Aug 2003 11:27:54 +0000 (04:27 -0700)
committerTrond Myklebust <trond.myklebust@fys.uio.no>
Thu, 21 Aug 2003 11:27:54 +0000 (04:27 -0700)
commit4a79c510d744b0b27cb574a1684ac2805fc5ed8c
tree4d5eaf34e6ab213910e85a980d3d5b343301cfe5
parentf3f324e7b7ca1c27fe6316c50ee9eaa887dee891
If an RPC request has to be resent due to a timeout, it turns out
that call_encode() may cause rq_rcv_buf to be reset despite the fact
that a reply might be delivered at any moment by a softirq.

This typically results in 'NFS: server cheating in read reply'
error messages.

Solve by adding rq_private_buf, which is updated atomically from
rq_rcv_buf.
include/linux/sunrpc/xprt.h
net/sunrpc/clnt.c
net/sunrpc/xprt.c