From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id AC8999AF for ; Thu, 28 Jul 2016 04:00:25 +0000 (UTC) Received: from smtprelay.hostedemail.com (smtprelay0140.hostedemail.com [216.40.44.140]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 9AD9C1A7 for ; Thu, 28 Jul 2016 04:00:24 +0000 (UTC) Received: from smtprelay.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by smtpgrave07.hostedemail.com (Postfix) with ESMTP id 4A64811A226 for ; Thu, 28 Jul 2016 03:40:39 +0000 (UTC) Date: Wed, 27 Jul 2016 23:40:35 -0400 From: Steven Rostedt To: David Howells Message-ID: <20160727234035.772a4333@grimm.local.home> In-Reply-To: <25598.1469113525@warthog.procyon.org.uk> References: <87inw1skws.fsf@x220.int.ebiederm.org> <25598.1469113525@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ksummit-discuss@lists.linuxfoundation.org Subject: Re: [Ksummit-discuss] [CORE TOPIC] More useful types in the linux kernel List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 21 Jul 2016 16:05:25 +0100 David Howells wrote: > (2) Differentiate non-BH spinlocks and BH spinlocks by type. > > It seems like you can't mix BH and non-BH ops on a spinlock without > lockdep barking. If that's the case, let's make this a compile-time > check. > Not sure what you mean here. You can use BH spinlocks as non BH spinlocks while in a BH, or if BH is already disabled, and lockdep will not complain. -- Steve