]> git.baikalelectronics.ru Git - kernel.git/commit
nfs41: RECLAIM_COMPLETE functionality
authorRicardo Labiaga <Ricardo.Labiaga@netapp.com>
Sat, 5 Dec 2009 21:08:41 +0000 (16:08 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 5 Dec 2009 21:08:41 +0000 (16:08 -0500)
commite88af124381c725b90d4e40873cd0024eca6f5ea
tree9ba2d8a62d6ec61e68d5a2808ca50eb917acbea1
parent29cd4729c6d312e48ee4ed2ca6c183929b60f22d
nfs41: RECLAIM_COMPLETE functionality

Implements RECLAIM_COMPLETE as an asynchronous RPC.
NFS4ERR_DELAY is retried, NFS4ERR_DEADSESSION invokes the error handling
but does not result in a retry, since we don't want to have a lingering
RECLAIM_COMPLETE call sent in the middle of a possible new state recovery
cycle.  If a session reset occurs, a new wave of reclaim operations will
follow, containing their own RECLAIM_COMPLETE call.  We don't want a
retry to get on the way of recovery by incorrectly indicating to the
server that we're done reclaiming state.

A subsequent patch invokes the functionality.

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