From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758191AbZJGKTJ (ORCPT ); Wed, 7 Oct 2009 06:19:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758015AbZJGKTI (ORCPT ); Wed, 7 Oct 2009 06:19:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6353 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757981AbZJGKTH (ORCPT ); Wed, 7 Oct 2009 06:19:07 -0400 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20091007074902.913463607@intel.com> References: <20091007074902.913463607@intel.com> <20091007073818.318088777@intel.com> To: Wu Fengguang Cc: dhowells@redhat.com, Andrew Morton , Theodore Tso , Christoph Hellwig , Dave Chinner , Chris Mason , Peter Zijlstra , "Li Shaohua" , "Myklebust Trond" , "jens.axboe@oracle.com" , Jan Kara , Nick Piggin , linux-fsdevel@vger.kernel.org, LKML Subject: Re: [PATCH 14/45] writeback: quit on wrap for .range_cyclic (afs) Date: Wed, 07 Oct 2009 11:17:06 +0100 Message-ID: <32495.1254910626@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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