[Devel] [PATCH rh7] fs/writeback: use redirty_tail to skip inodes.

Andrey Ryabinin aryabinin at virtuozzo.com
Mon Jan 25 03:28:49 PST 2016


We call requeue_io() on inode that meant to be skipped. It's not right
since requeue_io() means that we will busy retry to write that inode.
redirty_tail() should be used to skip inodes.

Signed-off-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
---
 fs/fs-writeback.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index 7b83367..d48530f9 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -729,7 +729,7 @@ static long writeback_sb_inodes(struct super_block *sb,
 		if ((work->ub || work->filter_ub) &&
 		     ub_should_skip_writeback(work->ub, inode)) {
 			spin_unlock(&inode->i_lock);
-			requeue_io(inode, wb);
+			redirty_tail(inode, wb);
 			continue;
 		}
 
-- 
2.4.10



More information about the Devel mailing list