NFSv4: Handle expired stateids when the lease is still valid
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 26 May 2011 18:26:35 +0000 (14:26 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 27 May 2011 21:42:01 +0000 (17:42 -0400)
commit0ced63d1a245ac11241a5d37932e6d04d9c8040d
treed5a3150e7cfc34f4f9943f8a18f32164ea1c94ec
parentfe19a96b10032035a35779f42ad59e35d6dd8ffd
NFSv4: Handle expired stateids when the lease is still valid

Currently, if the server returns NFS4ERR_EXPIRED in reply to a READ or
WRITE, but the RENEW test determines that the lease is still active, we
fail to recover and end up looping forever in a READ/WRITE + RENEW death
spiral.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@kernel.org
fs/nfs/nfs4proc.c