From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([65.50.211.133]:44037 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750943AbdBMNq5 (ORCPT ); Mon, 13 Feb 2017 08:46:57 -0500 Date: Mon, 13 Feb 2017 05:46:54 -0800 From: Christoph Hellwig To: Ming Lei Cc: Shaohua Li , Jens Axboe , linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, linux-block@vger.kernel.org, Christoph Hellwig , NeilBrown Subject: Re: [PATCH v1 1/5] block: introduce bio_clone_bioset_partial() Message-ID: <20170213134654.GB22818@infradead.org> References: <1486724177-14817-1-git-send-email-tom.leiming@gmail.com> <1486724177-14817-2-git-send-email-tom.leiming@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1486724177-14817-2-git-send-email-tom.leiming@gmail.com> Sender: linux-block-owner@vger.kernel.org List-Id: linux-block@vger.kernel.org On Fri, Feb 10, 2017 at 06:56:13PM +0800, Ming Lei wrote: > md still need bio clone(not the fast version) for behind write, > and it is more efficient to use bio_clone_bioset_partial(). > > The idea is simple and just copy the bvecs range specified from > parameters. Given how few users bio_clone_bioset has I wonder if we shouldn't simply add the two new arguments to it instead of adding another indirection. Otherwise looks fine: Reviewed-by: Christoph Hellwig