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 0AF24C77B7F for ; Thu, 11 May 2023 12:15:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231237AbjEKMPC (ORCPT ); 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 Precedence: bulk List-ID: X-Mailing-List: linux-bcachefs@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.