]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Wait for session recovery to finish before returning
authorBryan Schumaker <bjschuma@netapp.com>
Tue, 30 Oct 2012 20:06:35 +0000 (16:06 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 31 Oct 2012 17:13:28 +0000 (13:13 -0400)
commit8dd8835a6cda840d7fa05de18e0e34383d40485e
tree4920966a6d34ec9862eaa1410d591a54ee4e389e
parent96aca6ff4239b906005f573f42441b9cc75a88af
NFS: Wait for session recovery to finish before returning

Currently, we will schedule session recovery and then return to the
caller of nfs4_handle_exception.  This works for most cases, but causes
a hang on the following test case:

Client Server
------ ------
Open file over NFS v4.1
Write to file
Expire client
Try to lock file

The server will return NFS4ERR_BADSESSION, prompting the client to
schedule recovery.  However, the client will continue placing lock
attempts and the open recovery never seems to be scheduled.  The
simplest solution is to wait for session recovery to run before retrying
the lock.

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@vger.kernel.org
fs/nfs/nfs4proc.c