]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/nfs/nfs4proc.c
NFSv4: Remove redundant RENEW calls if we know the lease has expired
[linux-2.6-omap-h63xx.git] / fs / nfs / nfs4proc.c
index 279ab36b5a67ab5456412038fcf015f889a2e020..780ba004b3ddfd391dbbe1e5a2a95b9b6f6e31dc 100644 (file)
@@ -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);
        }