Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1802312pxb; Wed, 9 Feb 2022 04:59:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlDjhHpTWQ9jURLi/p6d1OQK/NYLeNVMijAc75qx5H1TEtlm2E0UigwPdPPlfiO8h8gvDB X-Received: by 2002:a17:902:6502:: with SMTP id b2mr2244304plk.43.1644411589414; Wed, 09 Feb 2022 04:59:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644411589; cv=none; d=google.com; s=arc-20160816; b=AcSunBf6bBId0iOr/wUMT0vmDDNWY18Nm1XTY93AyW5s5bn7ACVHmYcEXr0JT6SAoq BSiz4zzdhJndjN76fstpCjm2zB2MEmat+6d+3dYkbq3hQPWScij0Ql8JPCVlof/5Xy+S 9NyKtyVYo2oTQKGfQHQBl0s3z2aBjLDCP9UvFgrmr/9BFG+hTn3BQBUPF7/x6cdAVZaG pYP12WThPEisF+W0/mI1I5chSzojHnTNHcUX7PEGKMOGMpMSPjZYoYb1sr3PHW2SGe+X VHcOh8og36itg588uUUK2PvSeklZlbGb6o3qNYNxZ5alqwGJ6+wfuqVrrlz7C/6ZdfR9 VMpA== 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=43mWB+dy+19LJZoXitvaw8vs0PKmJKCLw7aLXD/RtUc=; b=kZr30G+p3ZkQZiV5UQnxNViNX0ItPbRSP93xyd/ONd6kAalloH6sdKA1snWstiFQzs 5viBIgNZqOhRT2JNEaoOqwuR4OFaMWKM4mX9ElGWZudaXEcmqbZMw3tlS21LT8+jn0PN /v1kGsAAF/YmDCACX/SvP81IDPkhoIC7Mj+fZd6fW1C7M5gpvOwdqzEisOYbau4EpHN/ SZtTnqTmltUfMKghEJL3naeUC9mKcc+h51YYlIO6c5+V72/4/b0AcpE4tfZmffhIJCKe mb4WIulw2aLtpwiRylYFIh4cEzGjF4iBHB/KDlXoRO61PLe2/ewS3FBJQIfH1L1+kj7H RQqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=PXDghF8A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k26si18707363pgm.320.2022.02.09.04.59.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 04:59:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=PXDghF8A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3A9D8E16DC2C; Wed, 9 Feb 2022 02:33:41 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243028AbiBIIlb (ORCPT + 99 others); Wed, 9 Feb 2022 03:41:31 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:55432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242982AbiBIIlZ (ORCPT ); Wed, 9 Feb 2022 03:41:25 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F529C03C180 for ; Wed, 9 Feb 2022 00:41:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=43mWB+dy+19LJZoXitvaw8vs0PKmJKCLw7aLXD/RtUc=; b=PXDghF8AE4NdBWLdWz4nIRYJy2 U8n4/hIA4rWCw/ppVyHI1bMRxYXvzohqf8k1XNEo65PGAMoyfrq+Ey+Zj8bVl3/I/jgnzv+TFRauA wwP5ItXrH9z/BjOV9RF9EG8ToHnBAp18aUKxOYM7iV7MVFJ+d9iahax390NNz7d0jeOhGb+o6HmgD 6DsJfcXC9PMYyoM8osmkBZ7lB3/DKikZf9CRLTpFObf4ULA0SG/d8pOv3cqCoKV3pXmuF5W6BVbvL Sa1DFlTyPxVYjIM15jPtgIBszQfPxwRNsF3umyifdNh3LppMj8E5VdsnS41IUD78bqkZ9/Akn+jNL sUPlhg1Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHiWo-007AWZ-MI; Wed, 09 Feb 2022 08:40:42 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 2858A986226; Wed, 9 Feb 2022 09:40:41 +0100 (CET) Date: Wed, 9 Feb 2022 09:40:41 +0100 From: Peter Zijlstra To: Namhyung Kim Cc: Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , LKML , Thomas Gleixner , Steven Rostedt , Byungchul Park , "Paul E. McKenney" , Mathieu Desnoyers , Radoslaw Burny Subject: Re: [PATCH 11/12] locking/mutex: Revive fast functions for CONFIG_LOCK_TRACEPOINTS Message-ID: <20220209084041.GJ23216@worktop.programming.kicks-ass.net> References: <20220208184208.79303-1-namhyung@kernel.org> <20220208184208.79303-12-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220208184208.79303-12-namhyung@kernel.org> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 08, 2022 at 10:42:07AM -0800, Namhyung Kim wrote: > I'm not entirely sure why it removed the fast versions when lockdep is > on. It seems easy to add the required annotation when the fast > version is succeeded as far as the tracpoints are concerned. IIRC it was something like, lockdep depends on MUTEX_DEBUG and that in turn relied on not having the fast path enabled. MUTEX_DEBUG used to always take the wait_lock to ensure the debug state is consistent with the lock state.