Received: by 10.213.65.68 with SMTP id h4csp3600631imn; Tue, 3 Apr 2018 07:44:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/L2r/xWa5c83HMGPnNuLHQ4gKPz+VSHN6qofPKPim8ZuaORkOCjCArNfNAz13j9ETenNIY X-Received: by 2002:a17:902:3e5:: with SMTP id d92-v6mr14806538pld.104.1522766688115; Tue, 03 Apr 2018 07:44:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522766688; cv=none; d=google.com; s=arc-20160816; b=QE0UmzcrVYL9fXgJDc4YuVrvC0YWGF86IuD+fUtqNBhONmvLQxksRhP6Oop9LZqY1U rMyyWU3Uk1q9VYzpPIGBYTPxHo04yy8xO3HoUtH2Y5xNBtsvL1X0XAjiIL9IvI58Rv3j fTLanucVo5X9zEKXJT3wzlVPjyZuVR3ggO5/jr4lwchEaednbgqS7REgn83wSC6C37qT 344V1GcFRlfnbtZWP+FLCGhc979s/+V4qZxUndlFAlpLI38CDZ0eZ+z7gzS6AVgkoTNB LlA1toSXmq/cUbq4+sndtkPvyHbv1MOyWsxrdQmN6JsRTXmoHjBxYywWpi4Pf2iYtRgl dTTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=JP3RDFO1q9aIYrmJ5Ri5UwQh7b2nzt8afWvzaGsMmHk=; b=OgPmTpOYp1RMe9MpSCiBcTOyThyxguv7efInR+JpV0y+XDFoFKS8NJDAedprJAlN/A X5yEuD8mFikY16gkgtC4RwbwV10pdgI0ZF15DuN92RtCrPUxZuR0dzPaOnx8tg4KBs71 y5C8vbMeC5qpRH1nq7JzUOUM2bt2571HIKgaombiyUbk85eqkgNxuERVFQNr3wgM297g 7R51hCuwgPDfkWcirfdNcCEt0RoAcGjSlcnsc7yKsQsw2uelOI7+dt/PHh9MzmLjvjXP EmVsTCxRicrHl6rdg2p8wSKsC2zEqCllZdaOkZ4f/y5YGCnhJEzg5PesHt2Fgnvs3jfp cgVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Zn3/ntf+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n77si2288583pfh.307.2018.04.03.07.44.33; Tue, 03 Apr 2018 07:44:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Zn3/ntf+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751933AbeDCOnR (ORCPT + 99 others); Tue, 3 Apr 2018 10:43:17 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:54778 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751538AbeDCOnP (ORCPT ); Tue, 3 Apr 2018 10:43:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=JP3RDFO1q9aIYrmJ5Ri5UwQh7b2nzt8afWvzaGsMmHk=; b=Zn3/ntf+k9pWfIQM4h7vyXnQ/ DAkhQPdyIdtp4ZexO2Yex1ewx+0juxvo0ni9p+TfGS+meU8L/VsHHnmHLFs+MM0cWTma/Owo/VbXE XMjw9EoUjXCH0K8hF5oUm/fJRoOLLPnLrE0foI04kBco0ee7jC04kgqM/jrPC/yk1dokF3jfIeORg iHH64nGTPVDUk6dxpLxhMqFjKep9x+5/LYCT+sWSQBOQfgqRTC+flxyBrzp+maIK48UL+/GbNH/xF uTSmFKeHjJJyq73mLnO8ay3zy11sWC0eRXC51PleNeZCjX3OH+uFOZ234yua7CW5Thl/6PlwPhSwC QmNOUiyiw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1f3N9L-0007Hd-6N; Tue, 03 Apr 2018 14:43:03 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 70090202A29FD; Tue, 3 Apr 2018 16:43:00 +0200 (CEST) Date: Tue, 3 Apr 2018 16:43:00 +0200 From: Peter Zijlstra To: "Paul E. McKenney" Cc: David Howells , Andrea Parri , Ingo Molnar , linux-kernel@vger.kernel.org, Andrea Parri , Alan Stern , Will Deacon , Boqun Feng , Nicholas Piggin , Jade Alglave , Luc Maranget , Akira Yokosawa Subject: Re: [PATCH v2 1/3] locking: Document the semantics of spin_is_locked() Message-ID: <20180403144300.GE4082@hirez.programming.kicks-ass.net> References: <20180403133543.GA26653@andrea> <1522600912-6208-2-git-send-email-andrea.parri@amarulasolutions.com> <1522600912-6208-1-git-send-email-andrea.parri@amarulasolutions.com> <29562.1522759749@warthog.procyon.org.uk> <13191.1522763553@warthog.procyon.org.uk> <20180403141718.GG3948@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180403141718.GG3948@linux.vnet.ibm.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 03, 2018 at 07:17:18AM -0700, Paul E. McKenney wrote: > Suggestions for a fix? Clearly great care is required when using it > in things like WARN_ON()... Yeah, don't use it there, use lockdep_assert_held(). As I stated before in this thread, ideally we'd make *_is_locked() go away entirely.