diff options
author | David Chinner <dgc@sgi.com> | 2007-01-11 02:15:41 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2007-01-11 21:18:21 -0500 |
commit | f73ca1b76c6880b934d3ef566c1592efc80bb759 (patch) | |
tree | c9384ef5ff0ba68817858afdcc330e8707b11ec9 /include/linux/fs.h | |
parent | 88bf7b391dca840f03fe25e4ff8fe6b4319fa07b (diff) |
[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 14a337cc3464..1410e5330c8d 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -459,7 +459,7 @@ struct block_device { | |||
459 | struct inode * bd_inode; /* will die */ | 459 | struct inode * bd_inode; /* will die */ |
460 | int bd_openers; | 460 | int bd_openers; |
461 | struct mutex bd_mutex; /* open/close mutex */ | 461 | struct mutex bd_mutex; /* open/close mutex */ |
462 | struct mutex bd_mount_mutex; /* mount mutex */ | 462 | struct semaphore bd_mount_sem; |
463 | struct list_head bd_inodes; | 463 | struct list_head bd_inodes; |
464 | void * bd_holder; | 464 | void * bd_holder; |
465 | int bd_holders; | 465 | int bd_holders; |