Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752709AbZK0G3J (ORCPT ); Fri, 27 Nov 2009 01:29:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751100AbZK0G3I (ORCPT ); Fri, 27 Nov 2009 01:29:08 -0500 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:38638 "EHLO fgwmail7.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751092AbZK0G3H (ORCPT ); Fri, 27 Nov 2009 01:29:07 -0500 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 From: KOSAKI Motohiro To: KOSAKI Motohiro Subject: Re: [PATCH-RFC] cfq: Disable low_latency by default for 2.6.32 Cc: kosaki.motohiro@jp.fujitsu.com, Mel Gorman , Corrado Zoccolo , Jens Axboe , Andrew Morton , Linus Torvalds , Frans Pop , Jiri Kosina , Sven Geggus , Karol Lewandowski , Tobias Oetiker , Pekka Enberg , Rik van Riel , Christoph Lameter , Stephan von Krawczynski , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-mm@kvack.org In-Reply-To: <20091127143307.A7E1.A69D9226@jp.fujitsu.com> References: <20091126141738.GE13095@csn.ul.ie> <20091127143307.A7E1.A69D9226@jp.fujitsu.com> Message-Id: <20091127152824.A7EA.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.50.07 [ja] Date: Fri, 27 Nov 2009 15:29:10 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1265 Lines: 43 > Instead, PF_MEMALLOC is good idea? This patch was obviously wrong. please forget it. i'm sorry. > > > Subject: [PATCH] cfq: Do not limit the async queue depth while memory reclaim > > Not-Signed-off-by: KOSAKI Motohiro (I haven't test this) > --- > block/cfq-iosched.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c > index aa1e953..9546f64 100644 > --- a/block/cfq-iosched.c > +++ b/block/cfq-iosched.c > @@ -1308,7 +1308,8 @@ static bool cfq_may_dispatch(struct cfq_data *cfqd, struct cfq_queue *cfqq) > * We also ramp up the dispatch depth gradually for async IO, > * based on the last sync IO we serviced > */ > - if (!cfq_cfqq_sync(cfqq) && cfqd->cfq_latency) { > + if (!cfq_cfqq_sync(cfqq) && cfqd->cfq_latency && > + !(current->flags & PF_MEMALLOC)) { > unsigned long last_sync = jiffies - cfqd->last_end_sync_rq; > unsigned int depth; > > -- > 1.6.5.2 > > > > > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/