]> xenbits.xensource.com Git - linux-pvops.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Feb 2012 19:28:48 +0000 (11:28 -0800)
commit065f8f7a00dbc4b41f81564679fac7312d0971c8
treedcc7c434396d27473cc25e6b0ba830ba2431d14f
parentfe6077930e9cab73db89a236447c0fe918854798
NFSv4: The state manager shouldn't exit on errors that were handled

commit 4f7cdf18e14f81860b856ef7694ef58eb1a751c0 upstream.

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>
Cc: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4state.c