Skip to contentSkip to conversation

a writeback locking fix

GIT PULL Fengguang Wu 1 participant 1 message Jun 12, 2012 VFS

lore
Share & tools
lore
#0 lore raw

The following changes since commit f8f5701bdaf9134b1f90e5044a82c66324d2073f:

Linux 3.5-rc1 (2012-06-02 18:29:26 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/wfg/linux.git tags/writeback-lock-fix

for you to fetch changes up to ead188f9f930fb5d7f0c49315a7fce3d8bd16b7e:

writeback: Fix lock imbalance in writeback_sb_inodes() (2012-06-09 08:32:15 +0900)

----------------------------------------------------------------
fix unbalanced wb->list_lock in 3.5-rc1

----------------------------------------------------------------
Jan Kara (1):
writeback: Fix lock imbalance in writeback_sb_inodes()

 fs/fs-writeback.c |    1 +
 1 file changed, 1 insertion(+)
fs/fs-writeback.c +1 -0
index 8d2fb8c..41a3ccf 100644
@@ -664,6 +664,7 @@ static long writeback_sb_inodes(struct super_block *sb,
 			/* Wait for I_SYNC. This function drops i_lock... */
 			inode_sleep_on_writeback(inode);
 			/* Inode may be gone, start again */
+			spin_lock(&wb->list_lock);
 			continue;
 		}
 		inode->i_state |= I_SYNC;