Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147845
b: refs/heads/master
c: 443b94b
h: refs/heads/master
i:
  147843: 84a346c
v: v3
  • Loading branch information
Al Viro committed Jun 12, 2009
1 parent 03315de commit 68e163c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5af7926ff33b68b3ba46531471c6e0564b285efc
refs/heads/master: 443b94baaa16771e98b29ca7c24f1e305738ffca
5 changes: 3 additions & 2 deletions trunk/fs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ static void do_emergency_remount(struct work_struct *work)
list_for_each_entry(sb, &super_blocks, s_list) {
sb->s_count++;
spin_unlock(&sb_lock);
down_read(&sb->s_umount);
down_write(&sb->s_umount);
if (sb->s_root && sb->s_bdev && !(sb->s_flags & MS_RDONLY)) {
/*
* ->remount_fs needs lock_kernel().
Expand All @@ -590,7 +590,8 @@ static void do_emergency_remount(struct work_struct *work)
do_remount_sb(sb, MS_RDONLY, NULL, 1);
unlock_kernel();
}
drop_super(sb);
up_write(&sb->s_umount);
put_super(sb);
spin_lock(&sb_lock);
}
spin_unlock(&sb_lock);
Expand Down

0 comments on commit 68e163c

Please sign in to comment.