diff mbox

[11/16] writeback: add missing requeue_io in writeback_inodes_wb

Message ID 1281432544-20831-12-git-send-email-stefan.bader@canonical.com
State Accepted
Delegated to: Stefan Bader
Headers show

Commit Message

Stefan Bader Aug. 10, 2010, 9:28 a.m. UTC
From: Christoph Hellwig <hch@lst.de>

BugLink: http://bugs.launchpad.net/bugs/585092

commit 334132ae921a14ac2b2ba48e174136f7f2c9aae1 upstream

In "writeback: fix writeback_inodes_wb from writeback_inodes_sb" I
accidentally removed the requeue_io if we need to skip a superblock
because we can't pin it.  Add it back, otherwise we're getting spurious
lockups after multiple xfstests runs.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
 fs/fs-writeback.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff mbox


diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index 02b62a4..58a8de2 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -631,8 +631,10 @@  static void writeback_inodes_wb(struct bdi_writeback *wb,
 			ret = writeback_sb_inodes(sb, wb, wbc);
 		} else {
-			if (!pin_sb_for_writeback(sb))
+			if (!pin_sb_for_writeback(sb)) {
+				requeue_io(inode);
+			}
 			ret = writeback_sb_inodes(sb, wb, wbc);