NFSv4: Remove redundant RENEW calls if we know the lease has expired
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
@ -984,7 +984,8 @@ static int nfs4_recover_expired_lease(struct nfs_server *server)
|
||||
ret = nfs4_wait_clnt_recover(server->client, clp);
|
||||
if (ret != 0)
|
||||
return ret;
|
||||
if (!test_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state))
|
||||
if (!test_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state) &&
|
||||
!test_bit(NFS4CLNT_CHECK_LEASE,&clp->cl_state))
|
||||
break;
|
||||
nfs4_schedule_state_recovery(clp);
|
||||
}
|
||||
|
Reference in New Issue
Block a user