[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20120612115807.GA17717@localhost>
Date: Tue, 12 Jun 2012 19:58:07 +0800
From: Fengguang Wu <fengguang.wu@...el.com>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org
Subject: [GIT PULL] a writeback locking fix
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(+)
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index 8d2fb8c..41a3ccf 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists