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)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 14 Dec 2014 16:23:45 +0000 (16:23 +0000)
commit9fda051c9b55c28d8cb71bf51f81b410ecb2f7f4
tree908c5200b6741ef62085250fbc2e10dbbf4d8ce0
parent69e46f0d90f0778dc0f78c609bc5264cc49a908a
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: Ben Hutchings <ben@decadent.org.uk>
fs/nfs/nfs4state.c