]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/nfs/nfs4renewd.c
NFSv4: Callers to nfs4_get_renew_cred() need to hold nfs_client->cl_lock
[linux-2.6-omap-h63xx.git] / fs / nfs / nfs4renewd.c
index 3305acbbe2ae3b7f4258baed8f5f807fbf7a1805..9fe8640a88eb1bd1b3acbfc4451ccf615f0b650d 100644 (file)
@@ -77,7 +77,7 @@ nfs4_renew_state(struct work_struct *work)
        timeout = (2 * lease) / 3 + (long)last - (long)now;
        /* Are we close to a lease timeout? */
        if (time_after(now, last + lease/3)) {
-               cred = nfs4_get_renew_cred(clp);
+               cred = nfs4_get_renew_cred_locked(clp);
                if (cred == NULL) {
                        set_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state);
                        spin_unlock(&clp->cl_lock);