diff options
Diffstat (limited to 'fs/exofs/super.c')
-rw-r--r-- | fs/exofs/super.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/exofs/super.c b/fs/exofs/super.c index 3cdb761db8ad..cd1f8b18a218 100644 --- a/fs/exofs/super.c +++ b/fs/exofs/super.c | |||
@@ -258,6 +258,8 @@ static void exofs_put_super(struct super_block *sb) | |||
258 | int num_pend; | 258 | int num_pend; |
259 | struct exofs_sb_info *sbi = sb->s_fs_info; | 259 | struct exofs_sb_info *sbi = sb->s_fs_info; |
260 | 260 | ||
261 | lock_kernel(); | ||
262 | |||
261 | if (sb->s_dirt) | 263 | if (sb->s_dirt) |
262 | exofs_write_super(sb); | 264 | exofs_write_super(sb); |
263 | 265 | ||
@@ -274,6 +276,8 @@ static void exofs_put_super(struct super_block *sb) | |||
274 | osduld_put_device(sbi->s_dev); | 276 | osduld_put_device(sbi->s_dev); |
275 | kfree(sb->s_fs_info); | 277 | kfree(sb->s_fs_info); |
276 | sb->s_fs_info = NULL; | 278 | sb->s_fs_info = NULL; |
279 | |||
280 | unlock_kernel(); | ||
277 | } | 281 | } |
278 | 282 | ||
279 | /* | 283 | /* |