diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2011-04-18 21:57:32 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-04-18 23:05:48 +0200 |
commit | 468f86134ee515234afe5c5b3f39f266c50e61a5 (patch) | |
tree | 912d0d587ffa2897ce16ed1258e8f52b23308b61 /net/sunrpc | |
parent | NFSv4.1: Ensure state manager thread dies on last umount (diff) | |
download | linux-468f86134ee515234afe5c5b3f39f266c50e61a5.tar.xz linux-468f86134ee515234afe5c5b3f39f266c50e61a5.zip |
NFSv4.1: Don't update sequence number if rpc_task is not sent
If we fail to contact the gss upcall program, then no message will
be sent to the server. The client still updated the sequence number,
however, and this lead to NFS4ERR_SEQ_MISMATCH for the next several
RPC calls.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/xprt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c index 9494c3767356..ce5eb68a9664 100644 --- a/net/sunrpc/xprt.c +++ b/net/sunrpc/xprt.c @@ -906,6 +906,7 @@ void xprt_transmit(struct rpc_task *task) } dprintk("RPC: %5u xmit complete\n", task->tk_pid); + task->tk_flags |= RPC_TASK_SENT; spin_lock_bh(&xprt->transport_lock); xprt->ops->set_retrans_timeout(task); |