From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Molnar Subject: Re: Subject: [PATCH] linux-acpi: smp_alternatives sleeping in spinlock Date: Sun, 14 Sep 2008 15:18:18 +0200 Message-ID: <20080914131818.GA30643@elte.hu> References: <5d96567b0809130652i7bc86cbfv6cdc103f595e1e11@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mx2.mail.elte.hu ([157.181.151.9]:40898 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753399AbYINNSe (ORCPT ); Sun, 14 Sep 2008 09:18:34 -0400 Content-Disposition: inline In-Reply-To: <5d96567b0809130652i7bc86cbfv6cdc103f595e1e11@mail.gmail.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Raz Cc: Linux Kernel , linux-acpi@vger.kernel.org, carlos@strangeworlds.co.uk, Vegard Nossum , Pekka Paalanen , Mathieu Desnoyers * Raz wrote: > From: Raz Ben Yehuda > > When booting a kernel with PREEMPT_ENABLE and SLAB_DEBUG, unplugging a > processor results in BUG in slab. could you please post that BUG? (and which version of the kernel you have tried, and exactly what you did to trigger this bug) note that the conversion to a sleeping lock: > -static DEFINE_SPINLOCK(smp_alt); > +static __DECLARE_SEMAPHORE_GENERIC(smp_alt_lock, 1); is already done correctly in the latest upstream kernel, see this commit: # 2f1dafe: x86: fix SMP alternatives: use mutex instead of spinlock the better solution is to use a mutex, not a semaphore. This fix is part of the v2.6.26 kernel. Ingo