NFSv4: The state manager shouldn't exit on errors that were handled
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 3 Dec 2009 20:53:20 +0000 (15:53 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 3 Dec 2009 20:53:20 +0000 (15:53 -0500)
commit4f7cdf18e14f81860b856ef7694ef58eb1a751c0
treeac10a661705b816cbee8702df34149db14b51cdc
parente345e88a774875cec26e097ea3ff2dc40c4f9da2
NFSv4: The state manager shouldn't exit on errors that were handled

nfs4_recovery_handle_error() will correctly handle errors such as
NFS4ERR_CB_PATH_DOWN, however because they are still passed back to the
main loop in nfs4_state_manager(), they can cause the latter to exit
prematurely.

Fix this by letting nfs4_recovery_handle_error() change the error value in
cases where there is no action required by the caller.

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