Re: [PATCH 04/32] locking: SIX locks (shared/intent/exclusive)

From: Kent Overstreet
Date: Fri May 12 2023 - 16:58:44 EST


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?