Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756674Ab1FVJjt (ORCPT ); Wed, 22 Jun 2011 05:39:49 -0400 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:59210 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755270Ab1FVJjr (ORCPT ); Wed, 22 Jun 2011 05:39:47 -0400 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 Message-ID: <4E01B84D.4040001@jp.fujitsu.com> Date: Wed, 22 Jun 2011 18:39:25 +0900 From: Hidetoshi Seto User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: Paul Turner CC: linux-kernel@vger.kernel.org, Peter Zijlstra , Bharata B Rao , Dhaval Giani , Balbir Singh , Vaidyanathan Srinivasan , Srivatsa Vaddagiri , Kamalesh Babulal , Ingo Molnar , Pavel Emelyanov Subject: Re: [patch 10/16] sched: throttle entities exceeding their allowed bandwidth References: <20110621071649.862846205@google.com> <20110621071700.700763369@google.com> In-Reply-To: <20110621071700.700763369@google.com> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1008 Lines: 34 (2011/06/21 16:16), Paul Turner wrote: > Add conditional checks time of put_prev_entity() and enqueue_entity() to detect > when an active entity has exceeded its allowed bandwidth and requires > throttling. > > Signed-off-by: Paul Turner > > --- (snip) > @@ -1403,7 +1412,7 @@ static void account_cfs_rq_runtime(struc > * if we're unable to extend our runtime we resched so that the active > * hierarchy can be throttled > */ > - if (!assign_cfs_rq_runtime(cfs_rq)) > + if (!assign_cfs_rq_runtime(cfs_rq) && likely(cfs_rq->curr)) > resched_task(rq_of(cfs_rq)->curr); > } > Nit: I think this hunk could be included in patch 08/16. The rest is good. Reviewed-by: Hidetoshi Seto Thanks, H.Seto -- 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/