Re: [PATCH 6/6] writeback: merge for_kupdate and !for_kupdate cases

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dave Chinner
Date: Monday, July 12, 2010 - 3:06 pm

On Mon, Jul 12, 2010 at 11:52:39PM +0800, Wu Fengguang wrote:

Shouldn't some of this be in the comment explain why the tail is
redirtied rather than requeued?


IMO, no better than "somehow blocked: retry later" because it
desont' include any of the explanation for the code you just gave
me.  The comment needs to tell us _why_ we are calling
redirty_tail, not what redirty_tail does. Perhaps something like:

	/*
	 * Writeback blocked by something other than congestion.
	 * Redirty the inode to avoid spinning on the CPU retrying
	 * writeback of the dirty page/inode that cannot be
	 * performed immediately. This allows writeback of other
	 * inodes until the blocking condition clears.
	 */

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 6/6] writeback: merge for_kupdate and !for_kupd ..., Dave Chinner, (Mon Jul 12, 3:06 pm)