diff options
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r-- | fs/block_dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index 6dcee88c2e5d..39cb6591d37d 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c | |||
@@ -245,6 +245,7 @@ struct super_block *freeze_bdev(struct block_device *bdev) | |||
245 | sb = get_active_super(bdev); | 245 | sb = get_active_super(bdev); |
246 | if (!sb) | 246 | if (!sb) |
247 | goto out; | 247 | goto out; |
248 | down_write(&sb->s_umount); | ||
248 | if (sb->s_flags & MS_RDONLY) { | 249 | if (sb->s_flags & MS_RDONLY) { |
249 | sb->s_frozen = SB_FREEZE_TRANS; | 250 | sb->s_frozen = SB_FREEZE_TRANS; |
250 | up_write(&sb->s_umount); | 251 | up_write(&sb->s_umount); |