Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4426701pxb; Sun, 14 Feb 2021 09:54:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/xLTz/EWpfSGFQn6ywfymBua0KAZYBfKg1zjWS1PU2hglaF5RviiYGKMDncAc9dO1IRjh X-Received: by 2002:aa7:d817:: with SMTP id v23mr11983672edq.192.1613325288603; Sun, 14 Feb 2021 09:54:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613325288; cv=none; d=google.com; s=arc-20160816; b=PcMN01jwcGpDT+7pKneGhyr6EMIvmo95XPRcMNCKnrte84Hv5/svkZw/clRjsNrBiE 8ptbGlApoby2y/cmQp2XBbGnPmum+AR86/E3aX02to3Z77PWaRdDMgCEP+2nH8EGEcTd J4q6RL/sY19CxuFi721rCP3LejvP959gi0iFUHVBbD41YBifH2g7ZhKs7WhmRmzmGTcA +GnzhbXySYrinnu/fp1dKOPjJmuit1Ig9uPzTa8DGF6p5iNIPZy2xSCAALzt+m5nYBez 8A7QKo/RWNEJqMS0atjPmXW9LgHUpYaRKjw8y53qujz56Xmqx3efgA0EDsXiqi20PvlQ fulA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6eDzsMVYwupeCX4Qk3KisD8eSo5kOICuWVyDL4sF11o=; b=mZ5VhN8Z63OQ8N1y4SyCz89fKhVAerl2R9KxIZJOWGNLjryZyBDW7BTFZ0LnH6806v c6migpgNWcuv4ZfJCI3sjVE84tQvUPUmH6ALMpLi2HZ21UN4NnDm0cO7qpk+09QIzYAE il1UKMkhnMcVSfcY8npLCcot/Q+QFhuQhk5m/UjdLDUTxbeokgUVZfmeuxgLgKj5p84r p5QjPZerJ2SzQt8fbnIRfoaq/fgQr35m6DnsHVRuYoDCq4lpl/jKkNMU1DiXMZD/ufdH FKegQKemgxpXnTuwPUgKdeU666WfrIxb7enm2vIrRjwJjBPyvm/G9ADpAcr192bGthkY oNCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=yhL7m6bu; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y2si10644940eju.432.2021.02.14.09.54.12; Sun, 14 Feb 2021 09:54:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=yhL7m6bu; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229818AbhBNRxz (ORCPT + 99 others); Sun, 14 Feb 2021 12:53:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229730AbhBNRxx (ORCPT ); Sun, 14 Feb 2021 12:53:53 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 087A2C061756; Sun, 14 Feb 2021 09:53:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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; bh=6eDzsMVYwupeCX4Qk3KisD8eSo5kOICuWVyDL4sF11o=; b=yhL7m6buGH9tujVqPbEPvFohLA Ib//hYBaSFwSJstxdChCuXAFoITUA/1UmehUKdApxlj7ON6pU7RJOHCPDjT8oehQqX8xmETkDlPlD 0Ap3JCr31qgzLViR4NOby/cGgom3ATbU69Lc9IENobKLzL8aLctgTlu3sEAH8XbC09MEbaNrLKpXU jhdIyoVCO5AGRkkWos3LJiSBl8F9y9sIBQl9+zQnqAoThAC5+ts62AMFuBiVz4zRQWg8B6xn3bJwR xDwdwnKdM/x1KWCa6Y/WTS7lVTCmuJ4auTfgQ1B5GWVx11PqlZObX3Vqyst7Labmm3c3TgM00mq45 uYenX46w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBLZx-0005mj-TD; Sun, 14 Feb 2021 17:53:06 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 5E7E13019CE; Sun, 14 Feb 2021 18:53:01 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 2E40320299B4B; Sun, 14 Feb 2021 18:53:01 +0100 (CET) Date: Sun, 14 Feb 2021 18:53:01 +0100 From: Peter Zijlstra To: Shuah Khan Cc: mingo@redhat.com, will@kernel.org, kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org, ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] lockdep: add lockdep_assert_not_held() Message-ID: References: <37a29c383bff2fb1605241ee6c7c9be3784fb3c6.1613171185.git.skhan@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <37a29c383bff2fb1605241ee6c7c9be3784fb3c6.1613171185.git.skhan@linuxfoundation.org> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, Feb 12, 2021 at 04:28:42PM -0700, Shuah Khan wrote: > +#define lockdep_assert_not_held(l) do { \ > + WARN_ON(debug_locks && lockdep_is_held(l)); \ > + } while (0) > + This thing isn't as straight forward as you might think, but it'll mostly work. Notably this thing will misfire when lockdep_off() is employed. It certainyl needs a comment to explain the subtleties.