[PATCH] nfsd4: prevent multiple unlinks of recovery directories
[linux-2.6.git] / fs / nfsd / nfs4recover.c
index 53abb33..57ed50f 100644 (file)
@@ -316,6 +316,7 @@ nfsd4_remove_clid_dir(struct nfs4_client *clp)
        if (!rec_dir_init || !clp->cl_firststate)
                return;
 
+       clp->cl_firststate = 0;
        nfs4_save_user(&uid, &gid);
        status = nfsd4_unlink_clid_dir(clp->cl_recdir, HEXDIR_LEN-1);
        nfs4_reset_user(uid, gid);