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 434CF1C696; Fri, 5 Apr 2024 06:38:19 +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=1712299101; cv=none; b=f3QJ+o2sBpuGVrwQGbmwUCNcKiriXfW42oTm5pQme/39YsS2IYPE04rkpBIQESdhliEx/2lG/9aOhr/3XLBOyz1RTAmL1SsYzz5qRcFvvHQgbkD24kjI+VysZeW8uWxiaVo6vOwbdKjjf6anpHQkWgC8wHqo4I+X6hE7zNqCrbQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712299101; c=relaxed/simple; bh=pf1lGejwClqVyxSaRR9Ig7k/at89gxTtav6nsMCl/TQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VzRTzIHYAHrMWlWFKs5qR6oWseJOZ42i/yB87mFFzgcSS04NqfF41VlHbgiXcGkeJHIoXSyOuwcrHor70rGjTdli1ZWJ4j+u8wXKqeRncZo6DnjqbW90mcqlLQ9QIAXel93UbyZeE09Fcn5PiCF/BRn+7VCHnlbrWzQ+eFkw+Io= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (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=none (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 36CB568D07; Fri, 5 Apr 2024 08:38:13 +0200 (CEST) Date: Fri, 5 Apr 2024 08:38:13 +0200 From: Christoph Hellwig To: John Garry Cc: Christoph Hellwig , Jens Axboe , "Martin K. Petersen" , Damien Le Moal , Niklas Cassel , Takashi Sakamoto , Sathya Prakash , Sreekanth Reddy , Suganath Prabu Subramani , "Juergen E. Fischer" , Xiang Chen , HighPoint Linux Team , Tyrel Datwyler , Brian King , Lee Duncan , Chris Leech , Mike Christie , Jason Yan , Kashyap Desai , Sumit Saxena , Shivasharan S , Chandrakanth patil , Jack Wang , Nilesh Javali , GR-QLogic-Storage-Upstream@marvell.com, Greg Kroah-Hartman , Alim Akhtar , Avri Altman , Bart Van Assche , Krzysztof Kozlowski , Alan Stern , linux-block@vger.kernel.org, linux-ide@vger.kernel.org, linux1394-devel@lists.sourceforge.net, MPT-FusionLinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, megaraidlinux.pdl@broadcom.com, mpi3mr-linuxdrv.pdl@broadcom.com, linux-samsung-soc@vger.kernel.org, linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net Subject: Re: [PATCH 01/23] block: add a helper to cancel atomic queue limit updates Message-ID: <20240405063813.GC3480@lst.de> References: <20240402130645.653507-1-hch@lst.de> <20240402130645.653507-2-hch@lst.de> <20240403125116.GA19332@lst.de> <34c1f31b-2a67-4c3d-8efa-b08a50f20e31@oracle.com> <20240405063418.GB3480@lst.de> Precedence: bulk X-Mailing-List: linux-ide@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: <20240405063418.GB3480@lst.de> User-Agent: Mutt/1.5.17 (2007-11-01) On Fri, Apr 05, 2024 at 08:34:18AM +0200, Christoph Hellwig wrote: > > Is that a known issue? > > I see that too, and it really confuses me as we have the proper > annotations there. I'll see what I can do. Seems like sparse lock annotations are really confused by inline function, because if I create an inline wrapper for queue_limits_commit_update that does the locking, that sorts out the warning and removes the need for any annotations. I'll cook up a proper patch for that and will ask Jens if this isn't too ugly.