X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fautofs4%2Froot.c;h=3765c047f157e76f4e1e760460db22e71c3744a0;hb=f7f1b0f1e2fbadeab12d24236000e778aa9b1ead;hp=82ef8ed2fabc061226fa63761ceae4656648e2cd;hpb=6a77f38946aaee1cd85eeec6cf4229b204c15071;p=linux-2.6.git diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index 82ef8ed2f..3765c047f 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c @@ -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);