Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6304426rwr; Tue, 9 May 2023 13:11:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Fv//Kh16MYKJ4Fi7FqUhMTh7C77XW1m4FtU9HFQYy0fN1JE0VAbBxxBOu2WlXodcIkcaC X-Received: by 2002:a05:6a00:1686:b0:643:a35d:b8dc with SMTP id k6-20020a056a00168600b00643a35db8dcmr20381153pfc.28.1683663085283; Tue, 09 May 2023 13:11:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683663085; cv=none; d=google.com; s=arc-20160816; b=WP3gyeSUxY3cctEb/xqew9WAW/I0GsEt042rtWVs7m8MK3EjzygpvOqOkv5F9xcFZr 0jh7CTkuBtQgOMwEWPK42gH3qxsKSbL5yxKLWwbCXUQ3LdeTYPJZDLTvwVSYHefKK4cW brwaM3UAJsnloCDzVxfLxTM4N02IhhmioJKbN8WuTchPGM3aFB9r4K0XH1yWXqBvlaqV +zCfl9e7S0sbrD5QZkH/2QruPwYmjWeNdPwLBvOkUlxx1xd3fx4o00ERt/4ZjUWRMRp5 XDaE3KUjzbmhmAgN5ldR2gypUp2Y9QKRLr6VML7amvEWo5i6Um5qkq7QCe2egROsPee0 NaZg== 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:dkim-signature:date; bh=vA3sbbV/QHVDEjFWeRW1Pm0ZfEpL5zDeaHwLB6+B5mM=; b=lGSiqZtIbqzirkHn5JwNXDlZtpuza5gIL6VQ9MilTicPb0Vtl2EQuxZNob+iWagFXu VzICDk5vvfKYIgZ33YSXynxbN9Wa215m0QwjRYFKEH6goVH1jqtg60pyporRDmhoiXpN +eCpusOBUXtkeYupgALUn3HYiclfozUgM6V1Hjrw6ZPy7+Ue5VkXfeNEPR6dkwTmO3Zt 4aG+E7keIrsgNOCYkgZ1jWU5vyhOOZrjC6ZmWzjFhsOevH9nK8fMg/Xnde+/AU4AYf/K 0exIGlM4Vs+nibaPhtfIc9Ol+tF/9MF2wxi15rajKjk/9gvKyBktbq7XyvvvYRxyw8JM pamA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=LIjUnmNx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a14-20020aa794ae000000b0063b77381764si3165622pfl.49.2023.05.09.13.11.12; Tue, 09 May 2023 13:11:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=LIjUnmNx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234507AbjEIT5X (ORCPT + 99 others); Tue, 9 May 2023 15:57:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbjEIT5V (ORCPT ); Tue, 9 May 2023 15:57:21 -0400 Received: from out-2.mta0.migadu.com (out-2.mta0.migadu.com [IPv6:2001:41d0:1004:224b::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 179C13C0B for ; Tue, 9 May 2023 12:57:19 -0700 (PDT) Date: Tue, 9 May 2023 15:57:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1683662238; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vA3sbbV/QHVDEjFWeRW1Pm0ZfEpL5zDeaHwLB6+B5mM=; b=LIjUnmNxS8zN+vYMhDT777VrmOACO6jwMvt5gO+8h44LS8gTFFx/ZseLESAkOf3iWbefUm 5h5F1IFqHB+hPJr/ZJwiTYG5znYVAvWkwxkodArfJldk7wj43vOFNhstko3JOQ0thONvyA InTGcdRW5rNd1CoPZXKYU/LtJb9c/7w= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-bcachefs@vger.kernel.org, Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng Subject: Re: [PATCH 03/32] locking/lockdep: lockdep_set_no_check_recursion() Message-ID: References: <20230509165657.1735798-1-kent.overstreet@linux.dev> <20230509165657.1735798-4-kent.overstreet@linux.dev> <20230509193147.GC2148518@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230509193147.GC2148518@hirez.programming.kicks-ass.net> X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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, May 09, 2023 at 09:31:47PM +0200, Peter Zijlstra wrote: > On Tue, May 09, 2023 at 12:56:28PM -0400, Kent Overstreet wrote: > > This adds a method to tell lockdep not to check lock ordering within a > > lock class - but to still check lock ordering w.r.t. other lock types. > > > > This is for bcachefs, where for btree node locks we have our own > > deadlock avoidance strategy w.r.t. other btree node locks (cycle > > detection), but we still want lockdep to check lock ordering w.r.t. > > other lock types. > > > > ISTR you had a much nicer version of this where you gave a custom order > function -- what happend to that? Probably in the other branch that I was meaning to re-mail you separately, clearly I hadn't pulled the latest versions back into here... expect that shortly :)