From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 A83B13C13FE for ; Thu, 9 Jul 2026 06:29:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783578580; cv=none; b=XaeH483U/DPHTtOs/RqkGRWMM5jTXBoB6qJ8Ooi95gHXeknIOpQA+kfyuVwMD4TMfewTwq0xrc0qreW8DuaTmAsroBOR66NQByDEqjx0GmGHNnZQKnAu5/OgU9mXOtZC9/goCdkRzgaPf5CbFqPBJmgkb8/27ikWqKENzfpzn5s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783578580; c=relaxed/simple; bh=zm2ycmTgbWKgOJ8MG15IhJkXZyTJVEvY9O85zgebUis=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qpLrpLXZaPBl8hBLhsFvWebyI+NiMfDZn4OYM0Rf7ZVb57V6eMmdHo3/dGzLdAUkc7y0Ar8pGqmVzBmELjZvFvpkn4RrWo9XUjPl7iyl7OvId3+yFA8wzdh5FoA8vpEcTTdViAMHHM9ZenIm+PFEx79P9A9lZKfOq8/+d7Ok2pQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id A56E168BFE; Thu, 9 Jul 2026 08:29:35 +0200 (CEST) Date: Thu, 9 Jul 2026 08:29:35 +0200 From: Christoph Hellwig To: Nilay Shroff Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, hch@lst.de, elver@google.com, kbusch@kernel.org, sagi@grimberg.me, axboe@fb.com, bvanassche@acm.org, gjoyce@linux.ibm.com Subject: Re: [PATCH v3 09/18] list: introduce LIST_HEAD_GUARDED Message-ID: <20260709062935.GB18056@lst.de> References: <20260706141452.3008233-1-nilay@linux.ibm.com> <20260706141452.3008233-10-nilay@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260706141452.3008233-10-nilay@linux.ibm.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Mon, Jul 06, 2026 at 07:44:11PM +0530, Nilay Shroff wrote: > Introduce LIST_HEAD_GUARDED(name, lock) to define a struct list_head > annotated with __guarded_by(lock). This provides a convenient shorthand > for defining lock-protected list heads and allows compiler context > analysis to validate accesses to the list against the associated lock. > > The new helper also reduces boilerplate and improves consistency across > callers that annotate struct list_head objects with __guarded_by(). Please put out of subsystem patches to the front of the series. And maybe send it off separately to Linus and the usual suspects to see if we can sneak it into 7.2 to make the dependencies easier.