Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933768AbXHXKKJ (ORCPT ); Fri, 24 Aug 2007 06:10:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1765860AbXHXKJu (ORCPT ); Fri, 24 Aug 2007 06:09:50 -0400 Received: from hellhawk.shadowen.org ([80.68.90.175]:2430 "EHLO hellhawk.shadowen.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765821AbXHXKJt (ORCPT ); Fri, 24 Aug 2007 06:09:49 -0400 Message-ID: <46CEAE41.7060001@shadowen.org> Date: Fri, 24 Aug 2007 11:09:05 +0100 From: Andy Whitcroft User-Agent: Icedove 1.5.0.9 (X11/20061220) MIME-Version: 1.0 To: Andrew Morton CC: paulmck@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, mingo@elte.hu, dipankar@in.ibm.com, josht@linux.vnet.ibm.com, tytso@us.ibm.com, dvhltc@us.ibm.com, tglx@linutronix.de Subject: Re: [PATCH RFC] Priority boosting for preemptible RCU References: <20070822190254.GA1135@linux.vnet.ibm.com> <20070822124340.16a891f2.akpm@linux-foundation.org> In-Reply-To: <20070822124340.16a891f2.akpm@linux-foundation.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SPF-Guess: neutral Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 825 Lines: 25 Andrew Morton wrote: >> + for_each_possible_cpu(cpu) { >> + rbdp = per_cpu(rcu_boost_dat, cpu); >> + for (i = 0; i < RCU_BOOST_ELEMENTS; i++) { >> + rbdp[i].rbs_mutex = SPIN_LOCK_UNLOCKED; > > Doesn't this confound lockdep? We're supposed to use spin_lock_init(). > > Andy, can we have a checkpatch rule for SPIN_LOCK_UNLOCKED please? It's > basically always wrong. ERROR: Use of SPIN_LOCK_UNLOCKED is deprecated: see Documentation/spinlocks.txt #58: FILE: Z17.c:55: + rbdp[i].rbs_mutex = SPIN_LOCK_UNLOCKED; Also picks up the RW_LOCK_UNLOCKED version too. -apw - 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/