From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796264798; b=iljXK2x2g+23U8PxTfKIsl3s5LWSSNyKk1v+BhdRFQybA0jDsFRKvBXNjjGBYDtDwxKV Qnk3h44McHRcunTAG+NftI35XqAaPdx8tvCE0OKxSVJiIEkidJmNjNVNdQhH24Zpc9eaa 025Y3+HM9pDUUNi0DBi5Ky3g7ouScZyaAMB9zXkQfWifZp3GidqcaBB7sMKwN7jIFfKEm uvWipGrx3oXQD9NSHEeIPYqdEHAaDDFwNPwL66ivnsEdwa9uO8bG/SP3w5lcr6iRPo1Wt KFLlQqFGvS0cbCp3mZh5ay1zHfd7wSo0Vwlom7tOtm1rl+5Hhh0eMtrAJmsAzliccCw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796264798; h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:From:Content-Language:Organization: In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=FjKjptdWDplk1zeFb+GNW4RLlIpcRiHluRE/EYj/uJQ=; b=0icb+PoXUpQ4BiV8GbTDRbbKH2mrG0cuwguc9cce5C+IWPCIrOJP9rvCJqWRv2NqoXrb /A/NrFOpRc9WTm5k2d9EhE75Vhw9+SqjtDDpWP4iLi74y5Rsou7GqOUN8+7aW1W5C3arY 0/GxyWFsJ1uPIOYjrP9Mjn6r4OwPDHDgNLl6LWaULxN5p6TL3Dd2jV7aOojXlGthn+XSM 8mqx8S7EnrJGyfMyLamPpXlQ9wAMNjEdbwVPO5Lz72HiweWrB5x/xBA1wqvWxP3BSDv29 cuvkf6Y8uwT3JzU90P+Fcs4TXfqjDcSn/OgKovMZX7Ty4L6EAimf6edDgOkmLamNivg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aT1lslxU; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9B0C606A322 for ; Thu, 3 Dec 2026 02:26:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aT1lslxU Received: by smtp.kernel.org (Postfix) with ESMTPSA id E48391F00896; Thu, 3 Dec 2026 02:26:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796264798; bh=FjKjptdWDplk1zeFb+GNW4RLlIpcRiHluRE/EYj/uJQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=aT1lslxU5qcEt8LiHhe5ctnwGzIgDnAGOsFt9u29YuPRyaaejXWxBtUD6SWkG+w3W 7JDauJSS8M1uHRhQ2SnBZJhuj7yUbqBZRhKfoFhsLZF+JC2ON4NN8KQ2fRwkUtjQZU /6t6DGM3ipgiAX5XnPHBrTaSiCK67MX3zwoUnheE00sVuUrCSt2k4nUDEp/FzYFwSS RhGEsZ6rSNlT61HFlMqXai0TUaAqvtO33Hv6cIFp6x0jTWOcbdtYYvnW5MnEuqsi2p qdL4qTw3Uj2LQgHRrGPazP6hrWqeeUeyb0iHE22QSt20/pRt65M1WMRrfGXaGUeko3 tz/NZAH933p1Q== Message-ID: <6072e405-3fd2-4fb1-8239-28615a729423@kernel.org> Date: Thu, 3 Dec 2026 11:26:36 +0900 X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 00/52] block: Add lock context annotations To: Bart Van Assche , Jens Axboe Cc: linux-block@vger.kernel.org, Christoph Hellwig References: From: Damien Le Moal Content-Language: en-US Organization: Western Digital Research In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2026/12/03 10:59, Bart Van Assche wrote: > Hi Jens, > > Deriving from the block layer source code which synchronization object > protects which member variable and which functions is nontrivial. This patch > series documents this in such a way that the documentation can be verified > by the Clang compiler. This patch series adds __must_hold(), __guarded_by() > and related annotations to the block layer core, the blk-cgroup policies, > the I/O schedulers, sed-opal, the partition code and the loop driver. With > these annotations and with CONFIG_WARN_CONTEXT_ANALYSIS=y, Clang verifies at > compile time that the annotated functions are only called and that the > annotated variables and structure members are only accessed with the > appropriate lock held. See also > Documentation/dev-tools/context-analysis.rst. Splitting this giant series into digestible pieces would be nice... Anyway, will try to have a look. -- Damien Le Moal Western Digital Research