Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178908
b: refs/heads/master
c: 108d394
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker committed Jan 5, 2010
1 parent 8ea4953 commit b14f65f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: 5fe1533fda8ae005541bd418a7a8bc4fa0cda522
refs/heads/master: 108d3943c021f0b66e860ba98ded40b82b677bd7
11 changes: 10 additions & 1 deletion trunk/fs/reiserfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -3140,8 +3140,17 @@ int reiserfs_setattr(struct dentry *dentry, struct iattr *attr)
journal_end(&th, inode->i_sb, jbegin_count);
}
}
if (!error)
if (!error) {
/*
* Relax the lock here, as it might truncate the
* inode pages and wait for inode pages locks.
* To release such page lock, the owner needs the
* reiserfs lock
*/
reiserfs_write_unlock_once(inode->i_sb, depth);
error = inode_setattr(inode, attr);
depth = reiserfs_write_lock_once(inode->i_sb);
}
}

if (!error && reiserfs_posixacl(inode->i_sb)) {
Expand Down

0 comments on commit b14f65f

Please sign in to comment.