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 9F4116DCF1; Fri, 12 Jan 2024 14:25:13 +0000 (UTC) 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 42D2368CFE; Fri, 12 Jan 2024 15:25:09 +0100 (CET) Date: Fri, 12 Jan 2024 15:25:09 +0100 From: Christoph Hellwig To: Jens Axboe Cc: Christoph Hellwig , Ming Lei , linux-block@vger.kernel.org, Ulf Hansson , linux-mmc@vger.kernel.org Subject: Re: [PATCH 2/2] blk-mq: ensure a q_usage_counter reference is held when splitting bios Message-ID: <20240112142509.GA6899@lst.de> References: <20240112054449.GA6829@lst.de> <9eb0f18e-f3ce-497c-931d-339efee2190d@kernel.dk> Precedence: bulk X-Mailing-List: linux-block@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: <9eb0f18e-f3ce-497c-931d-339efee2190d@kernel.dk> User-Agent: Mutt/1.5.17 (2007-11-01) On Fri, Jan 12, 2024 at 07:22:18AM -0700, Jens Axboe wrote: > Yep it is pretty cheap, but it's not free. Here's a test where we just > grab a ref and drop it, which should arguably be cheaper than doing a > ref at the top and dropping it at the bottom due to temporal locality: > > 5.01% +0.86% [kernel.vmlinux] [k] blk_mq_submit_bio Ok. Do you want to send out your version formally?