From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Piggin Subject: Re: [PATCH 14/45] writeback: quit on wrap for .range_cyclic (afs) Date: Wed, 7 Oct 2009 12:21:30 +0200 Message-ID: <20091007102130.GQ30316@wotan.suse.de> References: <20091007074902.913463607@intel.com> <20091007073818.318088777@intel.com> <32495.1254910626@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Wu Fengguang , Andrew Morton , Theodore Tso , Christoph Hellwig , Dave Chinner , Chris Mason , Peter Zijlstra , Li Shaohua , Myklebust Trond , "jens.axboe@oracle.com" , Jan Kara , linux-fsdevel@vger.kernel.org, LKML To: David Howells Return-path: Content-Disposition: inline In-Reply-To: <32495.1254910626@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Wed, Oct 07, 2009 at 11:17:06AM +0100, David Howells wrote: > Wu Fengguang wrote: > > > Convert wbc.range_cyclic to new behavior: when past EOF, abort writeback > > of the inode, which instructs writeback_single_inode() to delay it for > > a while if necessary. > > > > It removes one inefficient .range_cyclic IO pattern when writeback_index > > wraps: > > submit [10000-10100], (wrap), submit [0-100] > > In which the submitted pages may be consisted of two distant ranges. > > > > It also prevents submitting pointless IO for busy overwriters. > > > > CC: David Howells > > Signed-off-by: Wu Fengguang > > Acked-by: David Howells I don't see why. Then the inode is given less write bandwidth than those which don't wrap (or wrap on "nice" boundaries).