Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197938
b: refs/heads/master
c: 389b8be
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed May 21, 2010
1 parent ccbf520 commit 6adfc60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 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: 79d7e39ee1d4b423206f6cfd2cd2eed6253d95fe
refs/heads/master: 389b8be6ef419397e4f176652927ebad6ebb4b77
19 changes: 3 additions & 16 deletions trunk/fs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,22 +487,9 @@ struct super_block *get_active_super(struct block_device *bdev)
if (sb->s_bdev != bdev)
continue;

sb->s_count++;
spin_unlock(&sb_lock);
down_write(&sb->s_umount);
if (sb->s_root) {
spin_lock(&sb_lock);
if (sb->s_count > S_BIAS) {
atomic_inc(&sb->s_active);
sb->s_count--;
spin_unlock(&sb_lock);
return sb;
}
spin_unlock(&sb_lock);
}
up_write(&sb->s_umount);
put_super(sb);
yield();
if (grab_super(sb)) /* drops sb_lock */
return sb;

spin_lock(&sb_lock);
}
spin_unlock(&sb_lock);
Expand Down

0 comments on commit 6adfc60

Please sign in to comment.