From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Fengguang Subject: Re: [PATCH 2/6] writeback: stop background writeback when below background threshold Date: Thu, 24 Sep 2009 09:24:05 +0800 Message-ID: <20090924012405.GA6456@localhost> References: <20090923123337.990689487@intel.com> <20090923124027.589303074@intel.com> <20090923150510.GB23126@kernel.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andrew Morton , Jan Kara , Peter Zijlstra , Theodore Ts'o , Dave Chinner , Chris Mason , Christoph Hellwig , "linux-fsdevel@vger.kernel.org" , LKML To: Jens Axboe Return-path: Received: from mga03.intel.com ([143.182.124.21]:39600 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750986AbZIXBYQ (ORCPT ); Wed, 23 Sep 2009 21:24:16 -0400 Content-Disposition: inline In-Reply-To: <20090923150510.GB23126@kernel.dk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, Sep 23, 2009 at 11:05:10PM +0800, Jens Axboe wrote: > On Wed, Sep 23 2009, Wu Fengguang wrote: > > Treat bdi_start_writeback(0) as a special request to do background write, > > and stop such work when we are below the background dirty threshold. > > > > Also simplify the (nr_pages <= 0) checks. Since we already pass in > > nr_pages=LONG_MAX for WB_SYNC_ALL and background writes, we don't > > need to worry about it being decreased to zero. > > Good cleanup! Do you want me to collect these fixes, or how shall we > handle this? Thanks. I'm feeling OK with these patches(except the last one) as well as Jan's busy loop fixing patch. Can you pull them to your tree? Thanks, Fengguang