From nobody Tue Apr 7 09:37:39 2026 Received: from 011.lax.mailroute.net (011.lax.mailroute.net [199.89.1.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C9C53CB2C8 for ; Fri, 13 Mar 2026 17:15:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.1.14 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773422144; cv=none; b=KIyd3tVbDcoK3Y1YbNXsWMhekXqLhF40J5wcQeHbIjupPjeaiY4rxvMhEADUFOTMuRuOm6YtfGoThEn5d1i/hDJCU6WzMHC7A6iZieeWnmwSuVBwOBi4fmUaE37KbwGKNPE/z5ek/D/szyG86FkFsI7bp2Br8lF1b2lSw0/ytFs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773422144; c=relaxed/simple; bh=QFFdNhOdOwGXJ4npUpDe4HJ3wdnAPNjPLwem2MgbZSQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KG5v0KqDzmWudCcTyJuqnTi/J9gS0aO/QB+K0P25k4MWxQeE0icjj/NIlXG2/StSoaJOSiuBf8Bnbua7+jcf+yPhrLFICD2kDgeA+44iOgZwj1yGKRE4JRKkX8/ahuSEbcxjWg/WZxkapOn30k8Wqx79lam5RsrmOOUiKPWFkYw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b=lgu44Plr; arc=none smtp.client-ip=199.89.1.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="lgu44Plr" Received: from localhost (localhost [127.0.0.1]) by 011.lax.mailroute.net (Postfix) with ESMTP id 4fXWMy5M1Jz1XM6JQ; Fri, 13 Mar 2026 17:15:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:mime-version:references:in-reply-to :x-mailer:message-id:date:date:subject:subject:from:from :received:received; s=mr01; t=1773422134; x=1776014135; bh=rqDya 3T7i8mdq+ElLkCryFm2OgjCy660RT53p+BiPpo=; b=lgu44PlrIkmNNsiHhaz2t oCDgcxyDQZKwfSvxY9aa8ZSF4PBef1qTAGsIUQNqHQLN4iJZz8RPmJ96/bIe6NFX z9JJcLyAxr9LMoMB7quoM0MP8ibuDAE3GVXEnwR59ZUwVku8SxpvAof4ZIAkfhnV VT7C6+X5vwh7LUunNvLpD9ba4eheUGWvIwy1kdYUXiP93slrtvfwc87yUh3aQTGk xYuURQnwtV4/1Mo7LhP6esopFFfnYxPOSR/WFNP+tKeYKKVOMKWowiyRdMR9rj+F JBs5Y9kPtR1D3mkXAxBM19iMOOuznHO4J/8mcKW0GYTdJbW9Ojr4LdJKlRNPFOIv Q== X-Virus-Scanned: by MailRoute Received: from 011.lax.mailroute.net ([127.0.0.1]) by localhost (011.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id W8_0SNfvRe5I; Fri, 13 Mar 2026 17:15:34 +0000 (UTC) Received: from bvanassche.mtv.corp.google.com (unknown [104.135.180.219]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 011.lax.mailroute.net (Postfix) with ESMTPSA id 4fXWMl3kvlz1XMFjb; Fri, 13 Mar 2026 17:15:31 +0000 (UTC) From: Bart Van Assche To: Peter Zijlstra Cc: Ingo Molnar , Will Deacon , Boqun Feng , Waiman Long , linux-kernel@vger.kernel.org, Marco Elver , Bart Van Assche , Grant Grundler , Andrew Morton , Arjan van de Ven , Benoit Boissinot Subject: [PATCH 1/3] locking: Fix rwlock support in Date: Fri, 13 Mar 2026 10:15:07 -0700 Message-ID: <20260313171510.230998-2-bvanassche@acm.org> X-Mailer: git-send-email 2.53.0.851.ga537e3e6e9-goog In-Reply-To: <20260313171510.230998-1-bvanassche@acm.org> References: <20260313171510.230998-1-bvanassche@acm.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Architecture support for rwlocks must be available whether or not CONFIG_DEBUG_SPINLOCK has been defined. Move the definitions of the arch_{read,write}_{lock,trylock,unlock}() macros such that these become visbile if CONFIG_DEBUG_SPINLOCK=3Dn. This patch prepares for converting do_raw_{read,write}_trylock() into inline functions. Without this patch that conversion triggers a build failure for UP architectures, e.g. arm-ep93xx. I used the following kernel configuration to build the kernel for that architecture: CONFIG_ARCH_MULTIPLATFORM=3Dy CONFIG_ARCH_MULTI_V7=3Dn CONFIG_ATAGS=3Dy CONFIG_MMU=3Dy CONFIG_ARCH_MULTI_V4T=3Dy CONFIG_CPU_LITTLE_ENDIAN=3Dy CONFIG_ARCH_EP93XX=3Dy Fixes: fb1c8f93d869 ("[PATCH] spinlock consolidation") Signed-off-by: Bart Van Assche --- include/linux/spinlock_up.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/include/linux/spinlock_up.h b/include/linux/spinlock_up.h index 1e84e71ca495..3a50976471d7 100644 --- a/include/linux/spinlock_up.h +++ b/include/linux/spinlock_up.h @@ -48,16 +48,6 @@ static inline void arch_spin_unlock(arch_spinlock_t *loc= k) lock->slock =3D 1; } =20 -/* - * Read-write spinlocks. No debug version. - */ -#define arch_read_lock(lock) do { barrier(); (void)(lock); } while (0) -#define arch_write_lock(lock) do { barrier(); (void)(lock); } while (0) -#define arch_read_trylock(lock) ({ barrier(); (void)(lock); 1; }) -#define arch_write_trylock(lock) ({ barrier(); (void)(lock); 1; }) -#define arch_read_unlock(lock) do { barrier(); (void)(lock); } while (0) -#define arch_write_unlock(lock) do { barrier(); (void)(lock); } while (0) - #else /* DEBUG_SPINLOCK */ #define arch_spin_is_locked(lock) ((void)(lock), 0) /* for sched/core.c and kernel_lock.c: */ @@ -68,4 +58,14 @@ static inline void arch_spin_unlock(arch_spinlock_t *loc= k) =20 #define arch_spin_is_contended(lock) (((void)(lock), 0)) =20 +/* + * Read-write spinlocks. No debug version. + */ +#define arch_read_lock(lock) do { barrier(); (void)(lock); } while (0) +#define arch_write_lock(lock) do { barrier(); (void)(lock); } while (0) +#define arch_read_trylock(lock) ({ barrier(); (void)(lock); 1; }) +#define arch_write_trylock(lock) ({ barrier(); (void)(lock); 1; }) +#define arch_read_unlock(lock) do { barrier(); (void)(lock); } while (0) +#define arch_write_unlock(lock) do { barrier(); (void)(lock); } while (0) + #endif /* __LINUX_SPINLOCK_UP_H */ From nobody Tue Apr 7 09:37:39 2026 Received: from 011.lax.mailroute.net (011.lax.mailroute.net [199.89.1.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E45123C5DC0 for ; Fri, 13 Mar 2026 17:15:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.1.14 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773422144; cv=none; b=rbnnDV89cIPnSUzVc9XaVvLKWwZXYXTmoS5Fe7Owsmji2YdbtoyCZsxvr3MSWSfE3zDkAA+uiUFEbPwbJBywMJTfodrM5aZwvCBaY15IyrK7k13cElEwdxqgaXRfm4ksEgL5Ze0pAarl4bKGly+sqxjnY3HuWuhudJzQnr8C1bM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773422144; c=relaxed/simple; bh=8Au6BVMwSr9Gu0ZQnDiH3oTCFL5YDcxF1EVxL6AWPG0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BjC9+OhH25vwnSkwJMrGU0F+jUeSaDkxPvr6YeZ3nNG3u8U3jE6pN+jI3Nyz6fBFf7vycFJmv538Fe7AgeJMmvh88l5+Z5ozDsHACj4KeQp4ZY6EHuFuLwDGK8DBVaFqzfVl6rQnR+2KXi90zYbX1IpKEh/xnzUjnzI4pcGSLaM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b=M313rqxQ; arc=none smtp.client-ip=199.89.1.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="M313rqxQ" Received: from localhost (localhost [127.0.0.1]) by 011.lax.mailroute.net (Postfix) with ESMTP id 4fXWMy3TxYz1XM6JB; Fri, 13 Mar 2026 17:15:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:mime-version:references:in-reply-to :x-mailer:message-id:date:date:subject:subject:from:from :received:received; s=mr01; t=1773422137; x=1776014138; bh=/8lbx DgJuwGT98tI2y90EpnOfED6nIs0PDz9suhaGD0=; b=M313rqxQ9cfvvJWBDUmRr B1zAsIfXo0BJjaKSu5h6lE66CKjgeNo2TPuoPmY9xGZHPqMdQJBz+zJQLY3dBP3a pIC/qDuXEPSJxmZOWGrtgA4uZ0mLL1bgkwbQe4+eAaOUNPM5lQElzxWhwqR/W+pT Q5o31crElg25UB1PpfEK3qQyWdWZ+SdfNnVkbK78CrzN8EPIhOJE2p7sWlpkyJ/S tsXghCuQjRXcSOqXSHPzNMMyX9/Quudd3z6XuxsZrAjz/7VRz+SCJucWfETVaDWD 8Nf0b4oQqlls1SVY5d69MS5Q4CkfFVTwl7HrxKShbPjTdHFUg28obtkCBdwjiBzx Q== X-Virus-Scanned: by MailRoute Received: from 011.lax.mailroute.net ([127.0.0.1]) by localhost (011.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id 5Edvjw65qcFu; Fri, 13 Mar 2026 17:15:37 +0000 (UTC) Received: from bvanassche.mtv.corp.google.com (unknown [104.135.180.219]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 011.lax.mailroute.net (Postfix) with ESMTPSA id 4fXWMq1y98z1XLwXW; Fri, 13 Mar 2026 17:15:35 +0000 (UTC) From: Bart Van Assche To: Peter Zijlstra Cc: Ingo Molnar , Will Deacon , Boqun Feng , Waiman Long , linux-kernel@vger.kernel.org, Marco Elver , Bart Van Assche Subject: [PATCH 2/3] locking: Add lock context support in do_raw_{read,write}_trylock() Date: Fri, 13 Mar 2026 10:15:08 -0700 Message-ID: <20260313171510.230998-3-bvanassche@acm.org> X-Mailer: git-send-email 2.53.0.851.ga537e3e6e9-goog In-Reply-To: <20260313171510.230998-1-bvanassche@acm.org> References: <20260313171510.230998-1-bvanassche@acm.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Convert do_raw_{read,write}_trylock() from macros into inline functions and annotate these inline functions with __cond_acquires_shared() or __cond_acquires() as appropriate. This change is necessary to build kernel drivers or subsystems that use rwlock synchronization objects with lock context analysis enabled. The return type 'int' matches the return type for CONFIG_DEBUG_SPINLOCK=3Dy. Signed-off-by: Bart Van Assche --- include/linux/rwlock.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/include/linux/rwlock.h b/include/linux/rwlock.h index 21ceefc4a49f..4e67cd934d8f 100644 --- a/include/linux/rwlock.h +++ b/include/linux/rwlock.h @@ -37,10 +37,20 @@ extern int do_raw_write_trylock(rwlock_t *lock) __cond_= acquires(true, lock); extern void do_raw_write_unlock(rwlock_t *lock) __releases(lock); #else # define do_raw_read_lock(rwlock) do {__acquire_shared(lock); arch_read_lo= ck(&(rwlock)->raw_lock); } while (0) -# define do_raw_read_trylock(rwlock) arch_read_trylock(&(rwlock)->raw_lock) +static inline int do_raw_read_trylock(rwlock_t *rwlock) + __cond_acquires_shared(true, rwlock) + __no_context_analysis +{ + return arch_read_trylock(&(rwlock)->raw_lock); +} # define do_raw_read_unlock(rwlock) do {arch_read_unlock(&(rwlock)->raw_lo= ck); __release_shared(lock); } while (0) # define do_raw_write_lock(rwlock) do {__acquire(lock); arch_write_lock(&(= rwlock)->raw_lock); } while (0) -# define do_raw_write_trylock(rwlock) arch_write_trylock(&(rwlock)->raw_lo= ck) +static inline int do_raw_write_trylock(rwlock_t *rwlock) + __cond_acquires(true, rwlock) + __no_context_analysis +{ + return arch_write_trylock(&(rwlock)->raw_lock); +} # define do_raw_write_unlock(rwlock) do {arch_write_unlock(&(rwlock)->raw_= lock); __release(lock); } while (0) #endif =20 From nobody Tue Apr 7 09:37:39 2026 Received: from 011.lax.mailroute.net (011.lax.mailroute.net [199.89.1.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4DAEC3CB2E0 for ; Fri, 13 Mar 2026 17:15:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.1.14 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773422150; cv=none; b=tZ4ioRLFhEJFU/obhxPtN/3vpDESAHRAMlNMI3ahxYjOFtMyinl5HBNsUQGyUqK/a/ysdkGDcxZN0se9XROuoD0ALSqUw1mtOHN/Odi4OoA4TH0xtfLpaRd2ObUbOOMSb0kvStiK+a4RJNxx0A8KnThmPkA+Yr/pKTu6Nm3QQck= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773422150; c=relaxed/simple; bh=i+Q7AKnq7DLfXOmdUYzvfrbefT8mvIN5tfFavZjOwjA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ahFgHFTfedLTL/pJ5rwjcZVUWs6IwR4KtXQwbC5/XzRAkHKfR5QCHWqbjEiI5Osx/6u/ZwM8/a/etJdhdWZ5DbOyP6vXwIRGFRUx9LzVp2JYLHLxtLns703umSgnShea8Bubbd6i9YhAhfl4YfHS59Vs8jdj4L1W/ipUT/SIA2M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b=FYvR+bCZ; arc=none smtp.client-ip=199.89.1.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="FYvR+bCZ" Received: from localhost (localhost [127.0.0.1]) by 011.lax.mailroute.net (Postfix) with ESMTP id 4fXWN50S9mz1XM6JR; Fri, 13 Mar 2026 17:15:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:mime-version:references:in-reply-to :x-mailer:message-id:date:date:subject:subject:from:from :received:received; s=mr01; t=1773422142; x=1776014143; bh=Ykfaz +sPZV+TWSVNMsGJbnUfHzryeDJZYUtXSzlgZwg=; b=FYvR+bCZxibaYwNPEVVFh 5oc62dAqRWdhfTfQAJq0bTzo4jdWy5RpoREYE3W0h7qla/2MfauejKPEj04YWZGw 56BTKKEq78CjbmC71+4jkxc9UotcwnknowKDaiOli8MPRkcLWSA/P5s27wE5wOxr tCHdRNNo1qOwcE+qIQyMIRO9NgQC1Cm+fkRoNyWi+L9Kj0s/7eSZTmDLkktsObiC H5gcjEGNUDLkFfHZV9nPrLfR3DfwUDy8jJ9PUhqgUH1A2yjY/cRuX2cSEThiXstB Cx9wm7bE2y3y541B0vslWROhXikzBQzv/8XiPjM0k7ID7xitOA+LygyitSa4xx0W A== X-Virus-Scanned: by MailRoute Received: from 011.lax.mailroute.net ([127.0.0.1]) by localhost (011.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id dIGEAncHRF65; Fri, 13 Mar 2026 17:15:42 +0000 (UTC) Received: from bvanassche.mtv.corp.google.com (unknown [104.135.180.219]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 011.lax.mailroute.net (Postfix) with ESMTPSA id 4fXWMs5dZmz1XM5jn; Fri, 13 Mar 2026 17:15:37 +0000 (UTC) From: Bart Van Assche To: Peter Zijlstra Cc: Ingo Molnar , Will Deacon , Boqun Feng , Waiman Long , linux-kernel@vger.kernel.org, Marco Elver , Bart Van Assche Subject: [PATCH 3/3] locking: Add lock context annotations in the spinlock implementation Date: Fri, 13 Mar 2026 10:15:09 -0700 Message-ID: <20260313171510.230998-4-bvanassche@acm.org> X-Mailer: git-send-email 2.53.0.851.ga537e3e6e9-goog In-Reply-To: <20260313171510.230998-1-bvanassche@acm.org> References: <20260313171510.230998-1-bvanassche@acm.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Make the spinlock implementation compatible with lock context analysis (CONTEXT_ANALYSIS :=3D 1) by adding lock context annotations to the _raw_##op##_...() macros. Signed-off-by: Bart Van Assche --- kernel/locking/spinlock.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/kernel/locking/spinlock.c b/kernel/locking/spinlock.c index 7685defd7c52..b42d293da38b 100644 --- a/kernel/locking/spinlock.c +++ b/kernel/locking/spinlock.c @@ -64,8 +64,9 @@ EXPORT_PER_CPU_SYMBOL(__mmiowb_state); * time (making _this_ CPU preemptible if possible), and we also signal * towards that other CPU that it should break the lock ASAP. */ -#define BUILD_LOCK_OPS(op, locktype) \ +#define BUILD_LOCK_OPS(op, locktype, lock_ctx_op) \ static void __lockfunc __raw_##op##_lock(locktype##_t *lock) \ + lock_ctx_op(lock) \ { \ for (;;) { \ preempt_disable(); \ @@ -78,6 +79,7 @@ static void __lockfunc __raw_##op##_lock(locktype##_t *lo= ck) \ } \ \ static unsigned long __lockfunc __raw_##op##_lock_irqsave(locktype##_t *lo= ck) \ + lock_ctx_op(lock) \ { \ unsigned long flags; \ \ @@ -96,11 +98,13 @@ static unsigned long __lockfunc __raw_##op##_lock_irqsa= ve(locktype##_t *lock) \ } \ \ static void __lockfunc __raw_##op##_lock_irq(locktype##_t *lock) \ + lock_ctx_op(lock) \ { \ _raw_##op##_lock_irqsave(lock); \ } \ \ static void __lockfunc __raw_##op##_lock_bh(locktype##_t *lock) \ + lock_ctx_op(lock) \ { \ unsigned long flags; \ \ @@ -123,11 +127,11 @@ static void __lockfunc __raw_##op##_lock_bh(locktype#= #_t *lock) \ * __[spin|read|write]_lock_irqsave() * __[spin|read|write]_lock_bh() */ -BUILD_LOCK_OPS(spin, raw_spinlock); +BUILD_LOCK_OPS(spin, raw_spinlock, __acquires); =20 #ifndef CONFIG_PREEMPT_RT -BUILD_LOCK_OPS(read, rwlock); -BUILD_LOCK_OPS(write, rwlock); +BUILD_LOCK_OPS(read, rwlock, __acquires_shared); +BUILD_LOCK_OPS(write, rwlock, __acquires); #endif =20 #endif