Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.137.202.133 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796284593; b=3YUpJsb7RL7rRpyHHqPZqOLFjPTTkmLh711jqet9J3pO21eCL78lpz+GgyrfqonIkmbN +tkX/y8rnzofnsIb/Pqb4vF46z5niqRJlFAuPEL0me0xCrMgTFAPZNCl13J4fbFCYHE8Y mccAK/qZQX8UXw/yNOHAVn52b+cQG+wOL+dVcoI+LChfXLdYoNmV7J45AeHc5YClOXb6z /n507KwUAttfMUN2/iRXjXpmzOk7K+kY6vOBZgi9hK9l4em9yxCdOUViXvplIJkSYOh3K tDt2EmxMZSxZ4ChojwqKQVIQewtYILwWf58uPTYL+vFwg4V9is3pZdfsSZjO8ck+8NA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796284593; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To:X-SRS-Rewrite; bh=LYcvPcy0GDGWMDrW0M9ZaJEIa/Al44Bbpypde/Eojcw=; b=wr8Ji7tBLulUWtIREcPo+u4TcbT+FRpuuBDW2tXuNp2WTJddpVT4jzc7qER5Fy56Crcd S3GvuDxNu7w1uzsI/eQi7vpc93EYt8CZegBNt3LxLndn66pjvrRWqnmGuhCFWGJovlgdE U0PmL2zLZ9za4vksXHYE+u3aNt0C7d9c5aHTLh4nPeUQVqYnk1tfUN/tnGfdnALvNkORq 1wwUFB0RYf/R/l/AS45ku89l7fsr3Ob9HGg6Su2nYolAEQ+SccvJ3txswJHjMk09d0wAw LYj9I/TMpfqWNuhXuLa/5/PdN2d9tk2P0cfgbppsMyrXVT4AsiQsXJ9rU6OX2uHaq7w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=qO4swaYC; arc=none smtp.remote-ip=198.137.202.133 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 653BA606A322 for ; Thu, 3 Dec 2026 07:56:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 653BA606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=qO4swaYC DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=LYcvPcy0GDGWMDrW0M9ZaJEIa/Al44Bbpypde/Eojcw=; b=qO4swaYC+5YX7nKMjcZ2Mn2Bay 4yKFuYV9D3OYBohurOTXWGhxE4rZbib3LcysDGsNbW2Myaq3zGnK/1pmrw/S4EjLiZ79ORXSmyLZo roP2AXH30R2grC4xQqV2fAByN0L7RwmFFOqoXF3dLZL/MkRsDZP0pViCNQ+438mXpiGTYl6zd3icm DzWBcdTOxI3/aNh7wH3CoaN2q2NTMr/GmKjZ+ukkw+4hpK5WJ+xX9y0XlkQW4pkb/boWb+PMkOXBs DPXKeN5Wf58dWgVH201xFZ3NXWK0BXnAXwcmKILEskcQ7LrtoyxNsgbH075t4UsRsmR4LKD0q212g 83K0dKtw==; Received: from hch by bombadil.infradead.org with local (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ1g8-0000000Dmne-2pEY; Thu, 03 Dec 2026 07:56:32 +0000 Date: Wed, 2 Dec 2026 23:56:32 -0800 From: Christoph Hellwig To: Damien Le Moal Cc: Bart Van Assche , Jens Axboe , linux-block@vger.kernel.org, Christoph Hellwig , Nathan Chancellor Subject: Re: [PATCH 30/52] blk-zoned: Annotate struct blk_zone_wplug members with __guarded_by() Message-ID: References: <3a07bc8f-5eae-4253-b2a4-7edece984b8d@kernel.org> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3a07bc8f-5eae-4253-b2a4-7edece984b8d@kernel.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Thu, Dec 03, 2026 at 04:50:26PM +0900, Damien Le Moal wrote: > Calling disk_free_zone_wplug() with the zwplug spinlock still held would be a > really big problem since that potentially could result in a use after free. So > what path are you talking about here? > > This entire annotation thing makes the code really ugly... Well, part of it is having to explain the locking rules, and if they are complicated that usually shows real problems. The other is the whole scope_guarnd and unsafe_context junk, which really needs to be replaced with something sane before we can use these annotations without turning the code into cat barf. Mostly due to the latter I've largely given up on trying to use this otherwise extremely useful feature.