From: Trond Myklebust Date: Sat, 19 Jan 2013 04:01:43 +0000 (-0500) Subject: NFSv4.1: Ensure that nfs41_walk_client_list() does start lease recovery X-Git-Tag: accepted/tizen/common/20141203.182822~2944^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65436ec0c8e344d9b23302b686e418f2a7b7cf7b;p=platform%2Fkernel%2Flinux-arm64.git NFSv4.1: Ensure that nfs41_walk_client_list() does start lease recovery We do need to start the lease recovery thread prior to waiting for the client initialisation to complete in NFSv4.1. Signed-off-by: Trond Myklebust Cc: Chuck Lever Cc: Ben Greear Cc: stable@vger.kernel.org [>=3.7] --- diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c index 2f21f17..2e9779b 100644 --- a/fs/nfs/nfs4client.c +++ b/fs/nfs/nfs4client.c @@ -440,14 +440,17 @@ int nfs41_walk_client_list(struct nfs_client *new, nfs_put_client(prev); prev = pos; + nfs4_schedule_lease_recovery(pos); status = nfs_wait_client_init_complete(pos); if (status < 0) { nfs_put_client(pos); spin_lock(&nn->nfs_client_lock); continue; } - + status = pos->cl_cons_state; spin_lock(&nn->nfs_client_lock); + if (status < 0) + continue; } if (pos->rpc_ops != new->rpc_ops)