diff options
author | Jes Sorensen <jes@sgi.com> | 2006-01-09 18:59:24 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@hera.kernel.org> | 2006-01-09 18:59:24 -0500 |
commit | 1b1dcc1b57a49136f118a0f16367256ff9994a69 (patch) | |
tree | b0b36d4f41d28c9d6514fb309d33c1a084d6309b /fs/autofs4/root.c | |
parent | 794ee1baee1c26be40410233e6c20bceb2b03c08 (diff) |
[PATCH] mutex subsystem, semaphore to mutex: VFS, ->i_sem
This patch converts the inode semaphore to a mutex. I have tested it on
XFS and compiled as much as one can consider on an ia64. Anyway your
luck with it might be different.
Modified-by: Ingo Molnar <mingo@elte.hu>
(finished the conversion)
Signed-off-by: Jes Sorensen <jes@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'fs/autofs4/root.c')
-rw-r--r-- | fs/autofs4/root.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index 2241405ffc41..541b19e6fec9 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c | |||
@@ -489,9 +489,9 @@ static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, s | |||
489 | d_add(dentry, NULL); | 489 | d_add(dentry, NULL); |
490 | 490 | ||
491 | if (dentry->d_op && dentry->d_op->d_revalidate) { | 491 | if (dentry->d_op && dentry->d_op->d_revalidate) { |
492 | up(&dir->i_sem); | 492 | mutex_unlock(&dir->i_mutex); |
493 | (dentry->d_op->d_revalidate)(dentry, nd); | 493 | (dentry->d_op->d_revalidate)(dentry, nd); |
494 | down(&dir->i_sem); | 494 | mutex_lock(&dir->i_mutex); |
495 | } | 495 | } |
496 | 496 | ||
497 | /* | 497 | /* |