From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750912AbWFDEc1 (ORCPT ); Sun, 4 Jun 2006 00:32:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750930AbWFDEc1 (ORCPT ); Sun, 4 Jun 2006 00:32:27 -0400 Received: from omta04ps.mx.bigpond.com ([144.140.83.156]:57168 "EHLO omta04ps.mx.bigpond.com") by vger.kernel.org with ESMTP id S1750911AbWFDEc1 (ORCPT ); Sun, 4 Jun 2006 00:32:27 -0400 Message-ID: <44826258.2070803@bigpond.net.au> Date: Sun, 04 Jun 2006 14:32:24 +1000 From: Peter Williams User-Agent: Thunderbird 1.5.0.2 (X11/20060501) MIME-Version: 1.0 To: Con Kolivas CC: Linux Kernel , Sam Vilain , "Eric W.Biederman" , Srivatsa , Balbir Singh , Kirill Korotaev , Mike Galbraith , Kingsley Cheung , CKRM , Ingo Molnar , Rene Herman Subject: Re: [RFC 1/4] sched: Add CPU rate soft caps References: <20060604010831.2648.37997.sendpatchset@heathwren.pw.nest> <20060604010841.2648.43027.sendpatchset@heathwren.pw.nest> <200606041227.55892.kernel@kolivas.org> In-Reply-To: <200606041227.55892.kernel@kolivas.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH PLAIN at omta04ps.mx.bigpond.com from [147.10.133.38] using ID pwil3058@bigpond.net.au at Sun, 4 Jun 2006 04:32:25 +0000 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Con Kolivas wrote: > On Sunday 04 June 2006 11:08, Peter Williams wrote: >> 3. Thanks to suggestions from Con Kolivas with respect to alternative >> methods to reduce the possibility of a task being starved of CPU while >> holding an important system resource, enforcement of caps is now >> quite strict. However, there will still be occasions where caps may be >> exceeded due to this mechanism vetoing enforcement. > > Transcription bug here: > >> int fastcall __sched mutex_lock_interruptible(struct mutex *lock) >> { >> + int ret; >> + >> might_sleep(); >> return __mutex_fastpath_lock_retval >> (&lock->count, __mutex_lock_interruptible_slowpath); > > should be ret = How embarrassing. I wonder why I didn't notice an "unreachable code" warning here? Thanks Peter -- Peter Williams pwil3058@bigpond.net.au "Learning, n. The kind of ignorance distinguishing the studious." -- Ambrose Bierce