]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/autofs/root.c
[PATCH] mutex subsystem, semaphore to mutex: VFS, ->i_sem
[linux-2.6-omap-h63xx.git] / fs / autofs / root.c
index a1ab1c0ed21584ba5a6a0cb5195f2e89c505e7bd..808134a5a2fa63896bc4349415f478aaf440d1ad 100644 (file)
@@ -229,9 +229,9 @@ static struct dentry *autofs_root_lookup(struct inode *dir, struct dentry *dentr
        dentry->d_flags |= DCACHE_AUTOFS_PENDING;
        d_add(dentry, NULL);
 
-       up(&dir->i_sem);
+       mutex_unlock(&dir->i_mutex);
        autofs_revalidate(dentry, nd);
-       down(&dir->i_sem);
+       mutex_lock(&dir->i_mutex);
 
        /*
         * If we are still pending, check if we had to handle