Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312935
b: refs/heads/master
c: 85d7d61
h: refs/heads/master
i:
  312933: cad69b0
  312931: 99ff91b
  312927: be4daec
v: v3
  • Loading branch information
Al Viro committed Jul 14, 2012
1 parent ea27bc5 commit 399df60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 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: c4107b3097465e25f7d6a9b0ac0518b07b24e774
refs/heads/master: 85d7d618c17a09cfd824c1ad4483c19e6f9637ff
9 changes: 1 addition & 8 deletions trunk/fs/file_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,10 +483,8 @@ void mark_files_ro(struct super_block *sb)
{
struct file *f;

retry:
lg_global_lock(&files_lglock);
do_file_list_for_each_entry(sb, f) {
struct vfsmount *mnt;
if (!S_ISREG(f->f_path.dentry->d_inode->i_mode))
continue;
if (!file_count(f))
Expand All @@ -499,12 +497,7 @@ void mark_files_ro(struct super_block *sb)
if (file_check_writeable(f) != 0)
continue;
file_release_write(f);
mnt = mntget(f->f_path.mnt);
/* This can sleep, so we can't hold the spinlock. */
lg_global_unlock(&files_lglock);
mnt_drop_write(mnt);
mntput(mnt);
goto retry;
mnt_drop_write_file(f);
} while_file_list_for_each_entry;
lg_global_unlock(&files_lglock);
}
Expand Down

0 comments on commit 399df60

Please sign in to comment.