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 5817FC7EE24 for ; Fri, 12 May 2023 20:58:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233279AbjELU6m (ORCPT ); Fri, 12 May 2023 16:58:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229925AbjELU6k (ORCPT ); Fri, 12 May 2023 16:58:40 -0400 Received: from out-44.mta0.migadu.com (out-44.mta0.migadu.com [91.218.175.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81C863596 for ; Fri, 12 May 2023 13:58:39 -0700 (PDT) Date: Fri, 12 May 2023 16:58:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1683925117; 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=s3XsAale2pLEJviZ0m+jYrI+Fj0fMfY+mvCKD6YJX4A=; b=o0JZgBDUVO05o2TV2PjvcCm6Z2IjhphHnZiekpZFctWBBg+HahHJf1W6NIhprP6jCoRsKM ABbGnIU5/cNUb+QGeDbRAheohdJNRitSlYhUF+VdMTg/8u9N6iH7Wj93RPQeba8ViuoziU UNnv+w4Af2P9bJn8MagslTkrFdHzNtk= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Jan Engelhardt 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) Message-ID: References: <20230509165657.1735798-1-kent.overstreet@linux.dev> <20230509165657.1735798-5-kent.overstreet@linux.dev> <7233p553-861o-9772-n4nr-rr5424prq1r@vanv.qr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7233p553-861o-9772-n4nr-rr5424prq1r@vanv.qr> X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 11, 2023 at 02:14:08PM +0200, Jan Engelhardt wrote: > > 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" Thanks, fixed > >+// SPDX-License-Identifier: GPL-2.0 > > The currently SPDX list only knows "GPL-2.0-only" or "GPL-2.0-or-later", > please edit. Where is that list?