fs: assert that open_mutex isn't held over holder ops
[linux-2.6-microblaze.git] / fs / super.c
index 799b8db..c7b452e 100644 (file)
@@ -1433,6 +1433,7 @@ static struct super_block *bdev_super_lock_shared(struct block_device *bdev)
 
        lockdep_assert_held(&bdev->bd_holder_lock);
        lockdep_assert_not_held(&sb->s_umount);
+       lockdep_assert_not_held(&bdev->bd_disk->open_mutex);
 
        /* Make sure sb doesn't go away from under us */
        spin_lock(&sb_lock);