Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8725653rwr; Thu, 11 May 2023 05:34:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/DjK/jDbfmNAvyz2OELXaIGH/EW4qIK9iVjS8rfovR1oNH1iNt3GPz4O8TvQq0/kJML1S X-Received: by 2002:a17:902:b946:b0:1a6:b23c:3bf2 with SMTP id h6-20020a170902b94600b001a6b23c3bf2mr21310817pls.10.1683808459573; Thu, 11 May 2023 05:34:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683808459; cv=none; d=google.com; s=arc-20160816; b=Bk40AYrM4129Nxu9qUunOCwWNUraWnVWYZGprs6i9EKRasMDZPRtp8c9aa/LtgDb8E fD3m0oIi1y5SFwvlCR3+begEQB8/LSSDieV3kEdaI05yakA17nPCex+pQQoL2FfsdTP4 RIBgQ/zgOZ4MpAz0grWfZ5wAqY8LBzlz8H+X1bDArOrdSl1C0o834+vgi4a246iDNGqt qmcyQN1HWZMwHsZG27Dkj3eekOGg/ya1Iq5Q2GhIySSfefQqVYqGCoEWAescx1ynUnEc M6W8VPgsyb0wdS0S/RDYs5B4aRqQfA+mwntdquRfm23NFcpvyPRAZ0FYA1gt+ZpR7eI+ LjPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=3JaqSWYMse5tt2/7HLRC10uaRii4aQ9JPju0NdXL28M=; b=MC648hzjoRY9rzFUG/OeybS+e7SvEMNIH83+qy9Pmk3Pnz2pVrPS7ZES4liGGLSbwn 4dMXw9o9POUs84ETcHrm3mIJiY7m2IqGfoYnepnzfsMUM+NErZdBcVooaDDlD2uDPziz 5Ap98RPG/cCAuB3rjzlcf87tAvAchzWvuaTIaGiwAM2qdi4bsLIb+6k5rP+7BiKEUcqz I7bbq4adqhTgl2bS1od/gJE3YK0p3scFgZ9sy8+JD0GO4X0U936Xi5cAJ/mr/2+6zHSI 3WKTW37/bpkiQkPtbhyFp0XLI7+xOsHN0tXSri+Opr3x7+bVXK/8OSMgtFaejN9SR87U a22Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d2-20020a170902aa8200b001a9b2c782ddsi6378991plr.176.2023.05.11.05.34.05; Thu, 11 May 2023 05:34:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237436AbjEKMPC (ORCPT + 99 others); Thu, 11 May 2023 08:15:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229609AbjEKMOp (ORCPT ); Thu, 11 May 2023 08:14:45 -0400 Received: from a3.inai.de (a3.inai.de [IPv6:2a01:4f8:10b:45d8::f5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A241118; Thu, 11 May 2023 05:14:19 -0700 (PDT) Received: by a3.inai.de (Postfix, from userid 25121) id 7049758821597; Thu, 11 May 2023 14:14:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by a3.inai.de (Postfix) with ESMTP id 6F7FA60D34383; Thu, 11 May 2023 14:14:08 +0200 (CEST) Date: Thu, 11 May 2023 14:14:08 +0200 (CEST) From: Jan Engelhardt To: Kent Overstreet cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-bcachefs@vger.kernel.org, Kent Overstreet , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng Subject: Re: [PATCH 04/32] locking: SIX locks (shared/intent/exclusive) In-Reply-To: <20230509165657.1735798-5-kent.overstreet@linux.dev> Message-ID: <7233p553-861o-9772-n4nr-rr5424prq1r@vanv.qr> References: <20230509165657.1735798-1-kent.overstreet@linux.dev> <20230509165657.1735798-5-kent.overstreet@linux.dev> User-Agent: Alpine 2.25 (LSU 592 2021-09-18) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Tuesday 2023-05-09 18:56, Kent Overstreet wrote: >--- /dev/null >+++ b/include/linux/six.h >@@ -0,0 +1,210 @@ >+ * There are also operations that take the lock type as a parameter, where the >+ * type is one of SIX_LOCK_read, SIX_LOCK_intent, or SIX_LOCK_write: >+ * >+ * six_lock_type(lock, type) >+ * six_unlock_type(lock, type) >+ * six_relock(lock, type, seq) >+ * six_trylock_type(lock, type) >+ * six_trylock_convert(lock, from, to) >+ * >+ * A lock may be held multiple types by the same thread (for read or intent, "multiple times" >+// SPDX-License-Identifier: GPL-2.0 The currently SPDX list only knows "GPL-2.0-only" or "GPL-2.0-or-later", please edit.