NFSv4: fix open/lock state recovery error handling
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 27 Sep 2014 21:41:51 +0000 (17:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 16:38:22 +0000 (09:38 -0700)
commitc66ff82656e29949b1c1bfea1739dbca1dfde8be
treeaa5fb170cfb16b743cc37227e7ffad65fec23597
parent7c4ed3855612cf818b65649984ef1ba7b7cbab39
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