writeback: add missing requeue_io in writeback_inodes_wb

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>
This commit is contained in:
Christoph Hellwig 2010-06-09 14:28:43 +02:00 committed by Jens Axboe
parent c5444198ca
commit 334132ae92

View File

@ -643,8 +643,10 @@ static void writeback_inodes_wb(struct bdi_writeback *wb,
ret = writeback_sb_inodes(sb, wb, wbc); ret = writeback_sb_inodes(sb, wb, wbc);
} else { } else {
if (!pin_sb_for_writeback(sb)) if (!pin_sb_for_writeback(sb)) {
requeue_io(inode);
continue; continue;
}
ret = writeback_sb_inodes(sb, wb, wbc); ret = writeback_sb_inodes(sb, wb, wbc);
drop_super(sb); drop_super(sb);
} }