X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fsuper.c;h=3e7458c2bb76c6d46b44a57718cb3b30a9d317fe;hb=1d39ed565cfcc7c4fe586de621aef495c4f94ffb;hp=f961e03079974a374cdf7476107924e0c2a5ebc0;hpb=88032b322a38b37335c8cb2e3473a45c81d280eb;p=linux-2.6 diff --git a/fs/super.c b/fs/super.c index f961e03079..3e7458c2bb 100644 --- a/fs/super.c +++ b/fs/super.c @@ -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;