From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frederic Weisbecker Subject: Re: [patch 13/23] plist: Make plist debugging raw_spinlock aware Date: Mon, 7 Dec 2009 02:21:41 +0100 Message-ID: <20091207012140.GB4966@nowhere> References: <20091206110944.492100233@linutronix.de> <20091206111957.806855005@linutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-ew0-f219.google.com ([209.85.219.219]:35619 "EHLO mail-ew0-f219.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753758AbZLGBVf (ORCPT ); Sun, 6 Dec 2009 20:21:35 -0500 Content-Disposition: inline In-Reply-To: <20091206111957.806855005@linutronix.de> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Thomas Gleixner Cc: LKML , Linus Torvalds , Andrew Morton , Ingo Molnar , Peter Zijlstra , Linux-Arch On Sun, Dec 06, 2009 at 06:02:57PM -0000, Thomas Gleixner wrote: > plists are used with spinlocks and raw_spinlocks. Change the plist > debugging to handle both types. > > Signed-off-by: Thomas Gleixner > --- > include/linux/plist.h | 43 +++++++++++++++++++++++++++++++++++++------ > kernel/futex.c | 6 +++--- > lib/plist.c | 8 +++++--- > 3 files changed, 45 insertions(+), 12 deletions(-) > > Index: linux-2.6-tip/include/linux/plist.h > =================================================================== > --- linux-2.6-tip.orig/include/linux/plist.h > +++ linux-2.6-tip/include/linux/plist.h > @@ -81,7 +81,8 @@ struct plist_head { > struct list_head prio_list; > struct list_head node_list; > #ifdef CONFIG_DEBUG_PI_LIST > - spinlock_t *lock; > + raw_spinlock_t *rawlock; > + spinlock_t *spinlock; > #endif > }; This could be a union probably, as we don't use both at the same time?