diff options
author | David Chinner <dgc@sgi.com> | 2007-01-10 23:15:41 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2007-01-11 18:18:21 -0800 |
commit | f73ca1b76c6880b934d3ef566c1592efc80bb759 (patch) | |
tree | c9384ef5ff0ba68817858afdcc330e8707b11ec9 /include/linux/fs.h | |
parent | 88bf7b391dca840f03fe25e4ff8fe6b4319fa07b (diff) | |
download | op-kernel-dev-f73ca1b76c6880b934d3ef566c1592efc80bb759.zip op-kernel-dev-f73ca1b76c6880b934d3ef566c1592efc80bb759.tar.gz |
[PATCH] Revert bd_mount_mutex back to a semaphore
Revert bd_mount_mutex back to a semaphore so that xfs_freeze -f /mnt/newtest;
xfs_freeze -u /mnt/newtest works safely and doesn't produce lockdep warnings.
(XFS unlocks the semaphore from a different task, by design. The mutex
code warns about this)
Signed-off-by: Dave Chinner <dgc@sgi.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 14a337c..1410e53 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -459,7 +459,7 @@ struct block_device { struct inode * bd_inode; /* will die */ int bd_openers; struct mutex bd_mutex; /* open/close mutex */ - struct mutex bd_mount_mutex; /* mount mutex */ + struct semaphore bd_mount_sem; struct list_head bd_inodes; void * bd_holder; int bd_holders; |