projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] mutex subsystem, semaphore to mutex: VFS, ->i_sem
[powerpc.git]
/
fs
/
autofs
/
root.c
diff --git
a/fs/autofs/root.c
b/fs/autofs/root.c
index
a1ab1c0
..
808134a
100644
(file)
--- a/
fs/autofs/root.c
+++ b/
fs/autofs/root.c
@@
-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