NFSv4: Add recovery for individual stateids
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 23 Dec 2008 20:21:46 +0000 (15:21 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 23 Dec 2008 20:21:46 +0000 (15:21 -0500)
commit9e33bed55239bdcee1746c31a11177d239bac1b5
treeb6ff90aa50b1d71722ce8eb3f2cecc28dafc3e4d
parent95d35cb4c473c754824967c0b069bbeb7efa4847
NFSv4: Add recovery for individual stateids

NFSv4 defines a number of state errors which the client does not currently
handle. Among those we should worry about are:
  NFS4ERR_ADMIN_REVOKED - the server's administrator revoked our locks
     and/or delegations.
  NFS4ERR_BAD_STATEID - the client and server are out of sync, possibly
                        due to a delegation return racing with an OPEN
request.
  NFS4ERR_OPENMODE - the client attempted to do something not sanctioned
        by the open mode of the stateid. Should normally just
     occur as a result of a delegation return race.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4_fs.h
fs/nfs/nfs4proc.c
fs/nfs/nfs4state.c