]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Jun 2011 01:34:47 +0000 (10:34 +0900)
commit6844274a3ca81e5643b53c9844796f3dc11b5518
treecfadfb6f2919cc670e80d0b254c84d678a5df34e
parenta0a238f7cb684c0ea76a5817d1c92e2c7b0b7bd2
NFSv4: Handle expired stateids when the lease is still valid

commit 0ced63d1a245ac11241a5d37932e6d04d9c8040d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfs/nfs4proc.c