mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[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 <[email protected]> Cc: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
88bf7b391d
commit
f73ca1b76c
5 changed files with 9 additions and 9 deletions
|
|
@ -753,9 +753,9 @@ int get_sb_bdev(struct file_system_type *fs_type,
|
|||
* will protect the lockfs code from trying to start a snapshot
|
||||
* while we are mounting
|
||||
*/
|
||||
mutex_lock(&bdev->bd_mount_mutex);
|
||||
down(&bdev->bd_mount_sem);
|
||||
s = sget(fs_type, test_bdev_super, set_bdev_super, bdev);
|
||||
mutex_unlock(&bdev->bd_mount_mutex);
|
||||
up(&bdev->bd_mount_sem);
|
||||
if (IS_ERR(s))
|
||||
goto error_s;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue