Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308498
b: refs/heads/master
c: 365b94a
h: refs/heads/master
v: v3
  • Loading branch information
Jan Kara authored and Fengguang Wu committed May 6, 2012
1 parent 73f37dd commit a5df11e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: 68809c7108b9a75baf2a888b1c19ce1a4680f600
refs/heads/master: 365b94ae67d2915d412b593d47449a6bffed9d37
8 changes: 2 additions & 6 deletions trunk/fs/fs-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,8 @@ static void requeue_io(struct inode *inode, struct bdi_writeback *wb)

static void inode_sync_complete(struct inode *inode)
{
/*
* Prevent speculative execution through
* spin_unlock(&wb->list_lock);
*/

inode->i_state &= ~I_SYNC;
/* Waiters must see I_SYNC cleared before being woken up */
smp_mb();
wake_up_bit(&inode->i_state, __I_SYNC);
}
Expand Down Expand Up @@ -436,7 +433,6 @@ writeback_single_inode(struct inode *inode, struct bdi_writeback *wb,

spin_lock(&wb->list_lock);
spin_lock(&inode->i_lock);
inode->i_state &= ~I_SYNC;
if (!(inode->i_state & I_FREEING)) {
/*
* Sync livelock prevention. Each inode is tagged and synced in
Expand Down

0 comments on commit a5df11e

Please sign in to comment.