Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755458Ab1FNBYq (ORCPT ); Mon, 13 Jun 2011 21:24:46 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.123]:45190 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752497Ab1FNBYp (ORCPT ); Mon, 13 Jun 2011 21:24:45 -0400 X-Authority-Analysis: v=1.1 cv=yMxAJ7W7nAoPh8ZdbvCArpG6pAdHwgpzIvOq8QbMesM= c=1 sm=0 a=nbpwko1cA38A:10 a=5SG0PmZfjMsA:10 a=Q9fys5e9bTEA:10 a=OPBmh+XkhLl+Enan7BmTLg==:17 a=BjAo3GHOZZvjUevs1r4A:9 a=PUjeQqilurYA:10 a=OPBmh+XkhLl+Enan7BmTLg==:117 X-Cloudmark-Score: 0 X-Originating-IP: 67.242.120.143 Subject: Re: BUG on 3.0-rc on commit d72bce0e67e8afc6eb959f656013cbb577426f1e From: Steven Rostedt To: habanero@linux.vnet.ibm.com Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, paulmck In-Reply-To: <1308009910.23688.34.camel@atheurer-ubuntu10> References: <1307711837.23688.33.camel@atheurer-ubuntu10> <1307715084.3941.166.camel@twins> <1307717156.3941.169.camel@twins> <1307720081.17297.6.camel@atheurer-w510> <1307723232.3941.178.camel@twins> <1307977614.17297.12.camel@atheurer-w510> <1307979239.9218.76.camel@gandalf.stny.rr.com> <1308009910.23688.34.camel@atheurer-ubuntu10> Content-Type: text/plain; charset="ISO-8859-15" Date: Mon, 13 Jun 2011 21:24:43 -0400 Message-ID: <1308014683.9218.107.camel@gandalf.stny.rr.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 945 Lines: 33 On Mon, 2011-06-13 at 19:05 -0500, Andrew Theurer wrote: > > Could you try this patch? > > Yes, and it works! Thanks very much! Could you try this patch instead? I don't like holding off migration for the entire boot processes. -- Steve diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index 88725c9..4505bfb 100644 --- a/kernel/sched_rt.c +++ b/kernel/sched_rt.c @@ -1239,6 +1239,10 @@ static int find_lowest_rq(struct task_struct *task) int this_cpu = smp_processor_id(); int cpu = task_cpu(task); + /* Make sure the mask is initialized first */ + if (unlikely(!lowest_mask)) + return -1; + if (task->rt.nr_cpus_allowed == 1) return -1; /* No other targets possible */ -- 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/