From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=199.89.1.14 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796421508; b=X5QK84yXkHotvOQ9IV7FEK+QSKwTady51+PzAgclekwaB18vKeOU9YhZmQ++AemxRZ1i 3eFjekwbJnYb5h+iSK0TF1T62Bnnjy0XT6yrHwgz/7M9JrPkB7xaBWFEInXxTJqOwRR2/ JxWnBA+nKW766gSJ9W3NO3YIytGrAPr+GZXC0Q4WdD1AtLULV6hhZEaOBF0EgZmCOebZ5 DkphbgsxiEs+pbaFTVfnAOwpebkpY/J8eQTSCAJYQIHHtI1NjxgtbXjTRQBxdWwU0+XaB 7EL+xHnnrqwh5y2UKpFDx7fr35+GiT90aSEMKy+nhx/FVqqS3X1q9M+RUVW2IetePPg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796421508; h=DMARC-Filter:Received:DKIM-Signature:X-Virus-Scanned:Received: Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=KZa00mBQhYssVWzW3kEIJguir7YKCORva1pQBgqLQ2E=; b=EJTCu0a93JifuNvahhCDdXQR4R3LQ9gcvQOk4Ye+LotpAaHq/25RUvFWsqiexsnA1TH+ Vssn08TS7ZPP3NA8MY4axx7qy+N8D2m/ccainJTU0VgKftZp8/8rJxMYn/sooDJHeSsOH laf9MZ/aWnS2gq0Ab/t5DPpBt3JyRq9wGRRV+KSZ/t2Dji3gOTqTPhUdFWQrcJtjAOT85 aVmyuY9Ufs0cSN85U9ztDFV2EvVWRo7+Ir+FxoLsMRUuZr4iJgdr/GexHt9S+okjVILv7 +l02SOSz4TGntxYgL1A/kHawRlObe3FMEqqPwO5MwXkFydgeh6CCC6psK0OZLU37jCg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass header.d=acm.org header.i=@acm.org header.a=rsa-sha256 header.s=mr01 header.b=lyLgvxiF; arc=none smtp.remote-ip=199.89.1.14 Received: from 011.lax.mailroute.net (011.lax.mailroute.net [199.89.1.14]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47366606A322 for ; Fri, 4 Dec 2026 21:58:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 47366606A322 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, unprotected) header.d=acm.org header.i=@acm.org header.a=rsa-sha256 header.s=mr01 header.b=lyLgvxiF Received: from localhost (localhost [127.0.0.1]) by 011.lax.mailroute.net (Postfix) with ESMTP id 4jh53K0PLNz1XM30w; Fri, 4 Dec 2026 21:58:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:mime-version:x-mailer:message-id:date :date:subject:subject:from:from:received:received; s=mr01; t= 1796421498; x=1799013499; bh=KZa00mBQhYssVWzW3kEIJguir7YKCORva1p QBgqLQ2E=; b=lyLgvxiFFLJqQxdn8HyuuMvNwZZ/oTCRD77thaPGw6V/zSy6trB kEFp+LdgER+vrdiZRD6R/EKnGQBtRX73oRclgxlZ8zbBRCQEJAvbn7d4zMqzsE0s MEl8Gc214g6J2yqR0jDxdnL1R4/efzpukNoWQdMlYljrh1x1lZwPzQNAC0VTJ70w nMrxufaI2mmCa13djYS4lhS+WXhcf7GGIT+cz0g12EWOuhUZAVoFYvcqa7DbuXds ktZtctON/GkJLAloHY3lHMF5QnHs+XhUAT04ZPBj05f5IZ47vo5p2YfOlOiBPcQd JgRCT18vD7co/Z4p8w+ygrGz6W0RCeZb/Ow== 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 bxVgmx8eCKa8; Fri, 4 Dec 2026 21:58:18 +0000 (UTC) Received: from bvanassche.c.googlers.com.com (57.237.82.34.bc.googleusercontent.com [34.82.237.57]) (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 4jh53F693Dz1XLQB6; Fri, 4 Dec 2026 21:58:17 +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 , Christoph Hellwig , Bart Van Assche Subject: [PATCH 0/2] locking/rwlock: Fix non-debug lock context annotations Date: Fri, 4 Dec 2026 13:58:05 -0800 Message-ID: X-Mailer: git-send-email 2.56.1.915.g69d5ec7298-goog X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Peter and Marco, This patch series fixes two issues in the lock context annotations of the !CONFIG_DEBUG_SPINLOCK definitions of the rwlock primitives in : - do_raw_{read,write}_lock() and do_raw_{read,write}_unlock() pass the hardcoded identifier lock instead of the macro parameter rwlock to __acquire*() and __release*(). - do_raw_{read,write}_trylock() use __no_context_analysis instead of reporting lock acquisition explicitly, as do_raw_spin_trylock() does. These patches have been build-tested with Clang 24 for x86_64 with CONFIG_WARN_CONTEXT_ANALYSIS=3Dy, both with and without CONFIG_PREEMPT_RT= . Please consider these patches for the next merge window. Thank you, Bart. Bart Van Assche (2): locking/rwlock: Pass rwlock to __acquire*() and __release*() locking/rwlock: Report lock acquisition in non-debug do_raw_*_trylock() include/linux/rwlock.h | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-)