• Bryan Schumaker's avatar
    NFS: Wait for session recovery to finish before returning · 399f11c3
    Bryan Schumaker authored
    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: default avatarBryan Schumaker <bjschuma@netapp.com>
    Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
    Cc: stable@vger.kernel.org
    399f11c3
nfs4proc.c 191 KB