mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nathan Lynch <nathanl@austin.ibm.com>
To: dipankar@in.ibm.com
Cc: V Srivatsa <vatsa@in.ibm.com>,
	Joel Schopp <jschopp@austin.ibm.com>,
	Rusty Russell <rusty@rustcorp.com.au>,
	lkml <linux-kernel@vger.kernel.org>,
	Nick Piggin <nickpiggin@yahoo.com.au>,
	zwane@linuxpower.ca
Subject: Re: CPU hotplug broken in 2.6.8-rc2 ?
Date: Mon, 02 Aug 2004 14:38:40 -0500	[thread overview]
Message-ID: <1091475519.29556.4.camel@pants.austin.ibm.com> (raw)
In-Reply-To: <20040802095741.GA4599@in.ibm.com>

On Mon, 2004-08-02 at 04:57, Dipankar Sarma wrote:
> Copied to the right email ids to avoid bouncing emails on replies.
> 
> Thanks
> Dipankar
> 
> On Mon, Aug 02, 2004 at 03:19:07PM +0530, Dipankar Sarma wrote:
> > Could it be that recent sched domain stuff broke CPU hotplug ?
> > While testing cpu hotplug with some RCU changes, I got the following
> > panic (while onlining).

Could you try on 2.6.8-rc2-mm2 along with this patch?  Vatsa had a patch
go in that should prevent the crash you are seeing -- the patch below is
needed to prevent the same crash in the offline case.  This check used
to be in load_balance and some other scheduler functions, iirc; does
anyone know why they were removed?

Nathan


---


diff -puN kernel/sched.c~check-for-cpu-offline-in-load_balance kernel/sched.c
--- 2.6.8-rc2-mm2/kernel/sched.c~check-for-cpu-offline-in-load_balance	2004-08-02 13:12:04.000000000 -0500
+++ 2.6.8-rc2-mm2-nathanl/kernel/sched.c	2004-08-02 13:12:58.000000000 -0500
@@ -1405,6 +1405,9 @@ static int load_balance(int this_cpu, ru
 
 	spin_lock(&this_rq->lock);
 
+	if (unlikely(cpu_is_offline(this_cpu)))
+		goto out_balanced;
+
 	group = find_busiest_group(sd, this_cpu, &imbalance, idle);
 	if (!group)
 		goto out_balanced;

_



  parent reply	other threads:[~2004-08-02 22:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-02  9:49 Dipankar Sarma
2004-08-02  9:57 ` Dipankar Sarma
2004-08-02 13:46   ` Anton Blanchard
2004-08-02 19:38   ` Nathan Lynch [this message]
2004-08-02 20:26     ` Nathan Lynch
2004-08-03 21:07       ` Nathan Lynch
2004-08-04 10:06         ` Srivatsa Vaddagiri
2004-08-04 13:12           ` Nathan Lynch
2004-08-04 14:50         ` Zwane Mwaikambo
2004-08-04 21:07           ` Con Kolivas
2004-08-03  0:13     ` Rusty Russell
2004-08-02 16:00 ` Zwane Mwaikambo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1091475519.29556.4.camel@pants.austin.ibm.com \
    --to=nathanl@austin.ibm.com \
    --cc=dipankar@in.ibm.com \
    --cc=jschopp@austin.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nickpiggin@yahoo.com.au \
    --cc=rusty@rustcorp.com.au \
    --cc=vatsa@in.ibm.com \
    --cc=zwane@linuxpower.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®