From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with SMTP id 9E4A28D0001 for ; Mon, 1 Nov 2010 21:57:27 -0400 (EDT) Received: by iwn38 with SMTP id 38so7044195iwn.14 for ; Mon, 01 Nov 2010 18:57:26 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20101101122252.GA10637@localhost> References: <20100913123110.372291929@intel.com> <20100913130149.994322762@intel.com> <20100914124033.GA4874@quack.suse.cz> <20101101121408.GB9006@localhost> <20101101122252.GA10637@localhost> Date: Tue, 2 Nov 2010 10:57:26 +0900 Message-ID: Subject: Re: [PATCH 2/2] writeback: stop background/kupdate works from livelocking other works From: Minchan Kim Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org To: Wu Fengguang Cc: Andrew Morton , Jan Kara , "linux-mm@kvack.org" , Mel Gorman , Rik van Riel , Johannes Weiner , KAMEZAWA Hiroyuki , KOSAKI Motohiro , Dave Chinner , Christoph Hellwig , linux-fsdevel@vger.kernel.org List-ID: On Mon, Nov 1, 2010 at 9:22 PM, Wu Fengguang wrote: > From: Jan Kara > > Background writeback are easily livelockable (from a definition of their > target). This is inconvenient because it can make sync(1) stall forever waiting > on its queued work to be finished. Generally, when a flusher thread has > some work queued, someone submitted the work to achieve a goal more specific > than what background writeback does. So it makes sense to give it a priority > over a generic page cleaning. > > Thus we interrupt background writeback if there is some other work to do. We > return to the background writeback after completing all the queued work. > > Signed-off-by: Jan Kara > Signed-off-by: Wu Fengguang Reviewed-by: Minchan Kim -- Kind regards, Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: email@kvack.org