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 C6C853D4128; Wed, 13 May 2026 08:12:44 +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=1778659976; cv=none; b=mFEm1fS5Ilcl7/xRoCQRpOXrF/1cNDNCBiI6OoCuvW4xaejNF6/RIMwm0Zm/QNx4sE7mxk+pcGuh4bxavCv9mE8DQZ7dbkihMSnyEMsW0YndJKzkxFWL1mISjpWx1wnqZYx/b0AFlU5Kgqso5FuASgxEEBNcceB3RGV5BCXUy6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778659976; c=relaxed/simple; bh=TpAYosl9slccEP2FBB7SSfbQm6lJiZx763AlF73vs64=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OAgQ2bVx+qLhqOrvy7tFEAKqvfw0cJZewnUYKqtCFiG9yjgdXKhoMMPH+0cb34y2nYNPWDU54W5G+E3mvquWzteE+xj38ngmAhdyMntzCCVbX6zDJoCGKPnJRtuu9M5MAjev7F4D+COLfUbPMgTGxF4L3EifsZ0vFcIFCAS5i8c= 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 C4F8068BEB; Wed, 13 May 2026 10:12:38 +0200 (CEST) Date: Wed, 13 May 2026 10:12:38 +0200 From: Christoph Hellwig To: Pavel Begunkov Cc: Jens Axboe , Keith Busch , Christoph Hellwig , Sagi Grimberg , Alexander Viro , Christian Brauner , Andrew Morton , Sumit Semwal , Christian =?iso-8859-1?Q?K=F6nig?= , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-fsdevel@vger.kernel.org, io-uring@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, Nitesh Shetty , Kanchan Joshi , Anuj Gupta , Tushar Gohad , William Power , Phil Cayton , Jason Gunthorpe Subject: Re: [PATCH v3 03/10] block: move bvec init into __bio_clone Message-ID: <20260513081238.GC5477@lst.de> References: <43a91f54d61d3329316e40c69ace781b4d35fe0b.1777475843.git.asml.silence@gmail.com> Precedence: bulk X-Mailing-List: io-uring@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: <43a91f54d61d3329316e40c69ace781b4d35fe0b.1777475843.git.asml.silence@gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, Apr 29, 2026 at 04:25:49PM +0100, Pavel Begunkov wrote: > To quote Cristoph: "Historically __bio_clone itself does not clone the It's Christoph. > payload, just the bio. But we got rid of the callers that want to clone > a bio but not the payload long time ago". So let's move ->bi_io_vec > assignment into __bio_clone(), so we have a single point where it's set. but this he-said, she-said is totally irrelevant. Please state here why this is useful/important, which matters for anyone trying to understand the code in the future.