Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197945
b: refs/heads/master
c: 1494583
h: refs/heads/master
i:
  197943: 45eddbf
v: v3
  • Loading branch information
Al Viro committed May 21, 2010
1 parent 444869d commit b3e4668
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: e7fe0585ca8793e2d43c57e77d4ca79042806acf
refs/heads/master: 1494583de59dfad2e3a6788ce9817e658d32df22
14 changes: 7 additions & 7 deletions trunk/fs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,17 +471,17 @@ struct super_block *get_active_super(struct block_device *bdev)
if (!bdev)
return NULL;

restart:
spin_lock(&sb_lock);
list_for_each_entry(sb, &super_blocks, s_list) {
if (list_empty(&sb->s_instances))
continue;
if (sb->s_bdev != bdev)
continue;

if (grab_super(sb)) /* drops sb_lock */
return sb;

spin_lock(&sb_lock);
if (sb->s_bdev == bdev) {
if (grab_super(sb)) /* drops sb_lock */
return sb;
else
goto restart;
}
}
spin_unlock(&sb_lock);
return NULL;
Expand Down

0 comments on commit b3e4668

Please sign in to comment.