vserver 2.0 rc7
[linux-2.6.git] / fs / autofs4 / root.c
index 82ef8ed..3765c04 100644 (file)
@@ -605,7 +605,9 @@ static int autofs4_dir_rmdir(struct inode *dir, struct dentry *dentry)
                spin_unlock(&dcache_lock);
                return -ENOTEMPTY;
        }
+       spin_lock(&dentry->d_lock);
        __d_drop(dentry);
+       spin_unlock(&dentry->d_lock);
        spin_unlock(&dcache_lock);
 
        dput(ino->dentry);