diff options
Diffstat (limited to 'fs/nfs/nfs4renewd.c')
-rw-r--r-- | fs/nfs/nfs4renewd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4renewd.c b/fs/nfs/nfs4renewd.c index cde5650ee5a2..402143d75fc5 100644 --- a/fs/nfs/nfs4renewd.c +++ b/fs/nfs/nfs4renewd.c | |||
@@ -80,7 +80,7 @@ nfs4_renew_state(struct work_struct *work) | |||
80 | cred = ops->get_state_renewal_cred_locked(clp); | 80 | cred = ops->get_state_renewal_cred_locked(clp); |
81 | spin_unlock(&clp->cl_lock); | 81 | spin_unlock(&clp->cl_lock); |
82 | if (cred == NULL) { | 82 | if (cred == NULL) { |
83 | if (list_empty(&clp->cl_delegations)) { | 83 | if (!nfs_delegations_present(clp)) { |
84 | set_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state); | 84 | set_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state); |
85 | goto out; | 85 | goto out; |
86 | } | 86 | } |