From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757549AbYHaTIo (ORCPT ); Sun, 31 Aug 2008 15:08:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755484AbYHaTIg (ORCPT ); Sun, 31 Aug 2008 15:08:36 -0400 Received: from py-out-1112.google.com ([64.233.166.182]:44635 "EHLO py-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755547AbYHaTIf (ORCPT ); Sun, 31 Aug 2008 15:08:35 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Kfu+gv4uJ2u7V747Ym49QUSUfq0/B6k/akc/dgH61sCny0SFTLRZ33G36yWBoRD7tc pP5c+kZXj+C3gQCdZeizPJdL3lGkoeSnGQgbEIwihBzlnOrkWvOzMv+of7NVTUkXNFbp f/vqjCdK13NAPhTiFTROwzlK3SH0fTfxy3WZ4= Message-ID: <19f34abd0808311208v4caa9bdbhaac6ca5177c1994a@mail.gmail.com> Date: Sun, 31 Aug 2008 21:08:34 +0200 From: "Vegard Nossum" To: paulmck@linux.vnet.ibm.com Subject: Re: [PATCH] prevent ia64 from invoking irq handlers on offline CPUs Cc: linux-kernel@vger.kernel.org, tony.luck@intel.com, jes@sgi.com, manfred@colorfullife.com, akpm@linux-foundation.org In-Reply-To: <20080831180630.GF7015@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080831172814.GA15087@linux.vnet.ibm.com> <19f34abd0808311046g47907414wf3ef939d0a7bbfdb@mail.gmail.com> <20080831175100.GD7015@linux.vnet.ibm.com> <19f34abd0808311053m2fbaa711j5bfc846d81cf34b4@mail.gmail.com> <20080831180630.GF7015@linux.vnet.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 31, 2008 at 8:06 PM, Paul E. McKenney wrote: > On Sun, Aug 31, 2008 at 07:53:32PM +0200, Vegard Nossum wrote: >> On Sun, Aug 31, 2008 at 7:51 PM, Paul E. McKenney >> wrote: >> >> > @@ -751,6 +749,7 @@ int __cpu_disable(void) >> >> > remove_siblinginfo(cpu); >> >> > cpu_clear(cpu, cpu_online_map); >> >> Here ^^^ >> >> >> > fixup_irqs(); >> >> > + cpu_clear(cpu, cpu_online_map); >> >> > local_flush_tlb_all(); >> >> > cpu_clear(cpu, cpu_callin_map); >> >> > return 0; >> >> >> >> Hm. Maybe my eyes are going bad. But isn't that now clearing the cpu >> >> both before and after calling fixup_irqs()? >> > >> > I don't believe so... I removed the earlier one and added the later >> > one. Or is there another one hidden somewhere that I missed? >> >> See marker above. It's not removed, is it? > > Right you are!!! There were two to begin with, and I moved the first > one only. The attached updated patch removes the extra one. Good, I am not blind yet! (Though I did have to look more than once.) On the other hand... Paul; human after all! Vegard -- "The animistic metaphor of the bug that maliciously sneaked in while the programmer was not looking is intellectually dishonest as it disguises that the error is the programmer's own creation." -- E. W. Dijkstra, EWD1036