[PATCH] sem2mutex: blockdev #2
Semaphore to mutex conversion. The conversion was generated via scripts, and the result was validated automatically via a script as well. Signed-off-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu> Acked-by: Jens Axboe <axboe@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
6f87f0deeb
commit
c039e3134a
@ -693,9 +693,9 @@ struct super_block *get_sb_bdev(struct file_system_type *fs_type,
|
||||
* will protect the lockfs code from trying to start a snapshot
|
||||
* while we are mounting
|
||||
*/
|
||||
down(&bdev->bd_mount_sem);
|
||||
mutex_lock(&bdev->bd_mount_mutex);
|
||||
s = sget(fs_type, test_bdev_super, set_bdev_super, bdev);
|
||||
up(&bdev->bd_mount_sem);
|
||||
mutex_unlock(&bdev->bd_mount_mutex);
|
||||
if (IS_ERR(s))
|
||||
goto out;
|
||||
|
||||
|
Reference in New Issue
Block a user