Skip to content

Commit 266ae4e

Browse files
committed
Merge tag 'writeback-lock-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/wfg/linux
Pull writeback locking fix from Wu Fengguang: "fix unbalanced wb->list_lock in 3.5-rc1" * tag 'writeback-lock-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/wfg/linux: writeback: Fix lock imbalance in writeback_sb_inodes()
2 parents 7452ca5 + ead188f commit 266ae4e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎fs/fs-writeback.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ static long writeback_sb_inodes(struct super_block *sb,
664664
/* Wait for I_SYNC. This function drops i_lock... */
665665
inode_sleep_on_writeback(inode);
666666
/* Inode may be gone, start again */
667+
spin_lock(&wb->list_lock);
667668
continue;
668669
}
669670
inode->i_state |= I_SYNC;

0 commit comments

Comments
 (0)