[PATCH 42/45] writeback: requeue_io_wait() on blocked inode

From: Wu Fengguang
Date: Wed Oct 07 2009 - 04:15:46 EST


Use requeue_io_wait() if inode is somehow blocked. This includes the
wrapped around range_cyclic case.

CC: Jan Kara <jack@xxxxxxx>
CC: Dave Chinner <david@xxxxxxxxxxxxx>
Signed-off-by: Wu Fengguang <fengguang.wu@xxxxxxxxx>
---
fs/fs-writeback.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- linux.orig/fs/fs-writeback.c 2009-10-07 14:32:52.000000000 +0800
+++ linux/fs/fs-writeback.c 2009-10-07 14:32:53.000000000 +0800
@@ -591,7 +591,7 @@ writeback_single_inode(struct inode *ino
/*
* somehow blocked: retry later
*/
- redirty_tail(inode);
+ requeue_io_wait(inode);
}
} else if (inode->i_state & I_DIRTY) {
/*


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/