public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Olof Johansson <olof@lixom.net>
To: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	"David S. Miller" <davem@davemloft.net>,
	Heiko Carstens <heiko.carstens@de.ibm.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] 2.6.25+: Fix cpu hotplug in softirq code
Date: Tue, 29 Apr 2008 18:40:50 -0500	[thread overview]
Message-ID: <20080429234050.GA17936@lixom.net> (raw)
In-Reply-To: <200804242113.11602.borntraeger@de.ibm.com>

On Thu, Apr 24, 2008 at 09:13:11PM +0200, Christian Borntraeger wrote:
> Hello Olof,
> 
> currently cpu hotplug (unplug) seems broken on s390 and likely others. On cpu 
> unplug the system starts to behave very strange and hangs.
> 
> I bisected the problem to the following commit:
> 
> -----
> commit 48f20a9a9488c432fc86df1ff4b7f4fa895d1183
> Author: Olof Johansson <olof@lixom.net>
> Date:   Tue Mar 4 15:23:25 2008 -0800
>     tasklets: execute tasklets in the same order they were queued
> -----
> 
> Reverting this patch seems to fix the problem. I looked into takeover_tasklet
> and it seems that there is a way to corrupt the tail pointer of the current 
> cpu. If the tasklet list of the frozen cpu is empty, the tail pointer of the
> current cpu points to the address of the head pointer of the stopped cpu and 
> not to the next pointer of a tasklet_struct.
> 
> This patch avoids the list splice of the list is empty and cpu hotplug seems
> to work as the tail pointer is not corrupted.
> Olof, can you look into that patch and ACK/NACK it so Andrew can push this to
> Linus, if appropriate?
> Please note that some lines are longer than 80 chars, but line-wrapping looked
> worse that this version.
> 
> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>

I don't have a hotplug-capable system to test on, but the patch looks
good to me. Good catch.

Acked-by: Olof Johansson <olof@lixom.net>


-Olof

      parent reply	other threads:[~2008-04-29 23:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-24 19:13 [PATCH] 2.6.25+: Fix cpu hotplug in softirq code Christian Borntraeger
2008-04-29  7:40 ` [PATCH/resend] 2.6.25+: Fix cpu hotplug problem " Christian Borntraeger
2008-04-29 12:32   ` Ingo Molnar
2008-04-29 23:40 ` Olof Johansson [this message]

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=20080429234050.GA17936@lixom.net \
    --to=olof@lixom.net \
    --cc=akpm@linux-foundation.org \
    --cc=borntraeger@de.ibm.com \
    --cc=davem@davemloft.net \
    --cc=heiko.carstens@de.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    /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