Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758051AbZJELSI (ORCPT ); Mon, 5 Oct 2009 07:18:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753440AbZJELSH (ORCPT ); Mon, 5 Oct 2009 07:18:07 -0400 Received: from viefep18-int.chello.at ([62.179.121.38]:9985 "EHLO viefep18-int.chello.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753053AbZJELSG (ORCPT ); Mon, 5 Oct 2009 07:18:06 -0400 X-SourceIP: 213.93.53.227 Subject: Re: [PATCH] sched: Set correct normal_prio and prio values in sched_fork() From: Peter Zijlstra To: Peter Williams Cc: Ingo Molnar , Mike Galbraith , Linux Kernel Mailing In-Reply-To: References: Content-Type: text/plain Date: Mon, 05 Oct 2009 13:20:22 +0200 Message-Id: <1254741622.26976.37.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 834 Lines: 23 On Thu, 2009-09-24 at 06:47 +0000, Peter Williams wrote: > normal_prio should be updated if policy changes from RT to SCHED_MORMAL > or if static_prio/nice is changed. Some paths through sched_fork() > ignore this requirement and may result in normal_prio having an invalid > value. > > Fixing this issue allows the call to effective_prio() in > wake_up_new_task() to be removed. > > Signed-off-by: Peter Williams /me twists his brain into a pretsel, squints his eyes and sees its obvious ;-) Acked-by: Peter Zijlstra Thank Peter! -- 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/