From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F017C6FA82 for ; Thu, 22 Sep 2022 12:39:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229496AbiIVMjW (ORCPT ); Thu, 22 Sep 2022 08:39:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229972AbiIVMjU (ORCPT ); Thu, 22 Sep 2022 08:39:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23D10E7C1C for ; Thu, 22 Sep 2022 05:39:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B3EF662D96 for ; Thu, 22 Sep 2022 12:39:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42B34C433C1; Thu, 22 Sep 2022 12:39:17 +0000 (UTC) Date: Thu, 22 Sep 2022 08:40:19 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: Waiman Long , Ingo Molnar , Will Deacon , Boqun Feng , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] tracing: Use proper do_arch_spin_lock() API Message-ID: <20220922084019.4e2f2afc@gandalf.local.home> In-Reply-To: References: <20220921132152.1622616-1-longman@redhat.com> <20220921132152.1622616-3-longman@redhat.com> <20220921181721.3a51afe9@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 22 Sep 2022 09:55:29 +0200 Peter Zijlstra wrote: > > Nothing here is needed, as interrupts had better be disabled when this > > function is called. And there's already a: > > > > WARN_ON_ONCE(!irqs_disabled()); > > You can write that as lockdep_assert_irqs_disabled(); Of course we can ;-) But this was written before that existed. -- Steve