NFS: When state recovery fails, waiting tasks should exit
authorChuck Lever <chuck.lever@oracle.com>
Wed, 11 Jul 2012 20:30:41 +0000 (16:30 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 16 Jul 2012 19:12:15 +0000 (15:12 -0400)
commit46a87b8a7b939900d779042da7097bf330ab787f
treeeed7d8d57049ca7278647ea714fb21a6d7b3350f
parent6a1a1e34dc55f17e7bd260809207442dbb7a0296
NFS: When state recovery fails, waiting tasks should exit

NFSv4 state recovery is not always successful.  Failure is signalled
by setting the nfs_client.cl_cons_state to a negative (errno) value,
then waking waiters.

Currently this can happen only during mount processing.  I'm about to
add an explicit case where state recovery failure during normal
operation should force all NFS requests waiting on that state recovery
to exit.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c