Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 26 Feb 2003 07:27:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 26 Feb 2003 07:27:43 -0500 Received: from pc2-cwma1-4-cust86.swan.cable.ntl.com ([213.105.254.86]:7561 "EHLO irongate.swansea.linux.org.uk") by vger.kernel.org with ESMTP id ; Wed, 26 Feb 2003 07:27:42 -0500 Subject: Re: [PATCH][2.5] fix preempt-issues with smp_call_function() From: Alan Cox To: Andrew Morton Cc: Dave Jones , schlicht@uni-mannheim.de, Linus Torvalds , hugh@veritas.com, Linux Kernel Mailing List In-Reply-To: <20030226022819.44e1873a.akpm@digeo.com> References: <200302251908.55097.schlicht@uni-mannheim.de> <20030226103742.GA29250@suse.de> <20030226015409.78e8e1fb.akpm@digeo.com> <20030226111905.GA32415@suse.de> <20030226022819.44e1873a.akpm@digeo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Message-Id: <1046266771.8948.1.camel@irongate.swansea.linux.org.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 (1.2.1-4) Date: 26 Feb 2003 13:39:32 +0000 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 781 Lines: 18 On Wed, 2003-02-26 at 10:28, Andrew Morton wrote: > Dave Jones wrote: > > > > btw, (unrelated) shouldn't smp_call_function be doing magick checks > > with cpu_online() ? > > Looks OK? It sprays the IPI out to all the other CPUs in cpu_online_map, > and waits for num_online_cpus()-1 CPUs to answer. You cannot do that by counting without a lot of care. IPI messages do not have guaranteed "once only" semantics. On an error a resend can and has been observed to cause a reissue of an IPI on PII/PIII setups - 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/