Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755132AbZGIUPZ (ORCPT ); Thu, 9 Jul 2009 16:15:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754297AbZGIUPN (ORCPT ); Thu, 9 Jul 2009 16:15:13 -0400 Received: from brick.kernel.dk ([93.163.65.50]:42513 "EHLO kernel.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754163AbZGIUPM (ORCPT ); Thu, 9 Jul 2009 16:15:12 -0400 Date: Thu, 9 Jul 2009 22:15:11 +0200 From: Jens Axboe To: Vivek Goyal Cc: Jeff Moyer , linux-kernel@vger.kernel.org, akpm@linux-foundation.org Subject: Re: [PATCH 2/2] cfq-iosched: get rid of the need for __GFP_FAIL in cfq_find_alloc_queue() Message-ID: <20090709201510.GU23611@kernel.dk> References: <1246007120-24034-1-git-send-email-jens.axboe@oracle.com> <1246007120-24034-3-git-send-email-jens.axboe@oracle.com> <20090627182617.GX23611@kernel.dk> <20090709154446.GD30832@redhat.com> <20090709173823.GN23611@kernel.dk> <20090709195941.GE30832@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090709195941.GE30832@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 776 Lines: 23 On Thu, Jul 09 2009, Vivek Goyal wrote: > Sure. Here you go. > > In case memory is scarce, we now default to oom_cfqq. Once memory is > available again, we should allocate a new cfqq and stop using oom_cfqq for > a particular io context. > > Once a new request comes in, check if we are using oom_cfqq, and if yes, > try to allocate a new cfqq. > > Tested the patch by forcing the use of oom_cfqq and upon next request thread > realized that it was using oom_cfqq and it allocated a new cfqq. Thanks, applied! -- Jens Axboe -- 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/