NFSv4: fix open/lock state recovery error handling
commitb8faa9142cf083a4611f434d956456fc7b758dc5
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 27 Sep 2014 21:41:51 +0000 (27 17:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 16:40:14 +0000 (30 09:40 -0700)
tree5d70df62b1e3e2b5f892dc3c0395b5c7b9fda696
parent3249b7a6f610ccf8c18ee6b1be4618519d41980b
NFSv4: fix open/lock state recovery error handling

commit df817ba35736db2d62b07de6f050a4db53492ad8 upstream.

The current open/lock state recovery unfortunately does not handle errors
such as NFS4ERR_CONN_NOT_BOUND_TO_SESSION correctly. Instead of looping,
just proceeds as if the state manager is finished recovering.
This patch ensures that we loop back, handle higher priority errors
and complete the open/lock state recovery.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4state.c