From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH v3 01/11] block: make generic_make_request handle arbitrarily sized bios Date: Mon, 18 May 2015 19:22:59 +0200 Message-ID: <20150518172259.GA8116@lst.de> References: <1430980461-5235-1-git-send-email-mlin@kernel.org> <1430980461-5235-2-git-send-email-mlin@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Jeff Moyer Cc: Ming Lin , linux-kernel@vger.kernel.org, Christoph Hellwig , Jens Axboe , Kent Overstreet , Dongsu Park , Christoph Hellwig , Al Viro , Ming Lei , Neil Brown , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, Lars Ellenberg , drbd-user@lists.linbit.com, Jiri Kosina , Geoff Levand , Jim Paris , Joshua Morris , Philip Kelleher , Minchan Kim , Nitin Gupta , Oleg Drokin , Andreas Dilger List-Id: dm-devel.ids On Mon, May 18, 2015 at 12:52:03PM -0400, Jeff Moyer wrote: > > + return bio_split(bio, split_sectors, GFP_NOIO, bs); > > Much of this function is cut-n-paste from blk-lib.c. Is there any way > to factor it out? The code in blk-lib.c can go away now that any driver that cares does the split. > > +static struct bio *blk_bio_segment_split(struct request_queue *q, > > + struct bio *bio, > > + struct bio_set *bs) > > +{ > > Funny name for a function that also merges segments. ;-) I admit I am > at a loss for coming up with a better name that won't overflow 80 > columns. I'd keep the name and add a funny comment instead. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 18 May 2015 19:22:59 +0200 From: Christoph Hellwig To: Jeff Moyer Message-ID: <20150518172259.GA8116@lst.de> References: <1430980461-5235-1-git-send-email-mlin@kernel.org> <1430980461-5235-2-git-send-email-mlin@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: Mike Snitzer , Neil Brown , Ming Lei , dm-devel@redhat.com, Christoph Hellwig , Alasdair Kergon , Lars Ellenberg , Philip Kelleher , Joshua Morris , Christoph Hellwig , Kent Overstreet , Nitin Gupta , Oleg Drokin , Al Viro , Ming Lin , Jens Axboe , Andreas Dilger , Geoff Levand , Jiri Kosina , linux-kernel@vger.kernel.org, Jim Paris , Minchan Kim , Dongsu Park , drbd-user@lists.linbit.com Subject: Re: [Drbd-dev] [PATCH v3 01/11] block: make generic_make_request handle arbitrarily sized bios List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, May 18, 2015 at 12:52:03PM -0400, Jeff Moyer wrote: > > + return bio_split(bio, split_sectors, GFP_NOIO, bs); > > Much of this function is cut-n-paste from blk-lib.c. Is there any way > to factor it out? The code in blk-lib.c can go away now that any driver that cares does the split. > > +static struct bio *blk_bio_segment_split(struct request_queue *q, > > + struct bio *bio, > > + struct bio_set *bs) > > +{ > > Funny name for a function that also merges segments. ;-) I admit I am > at a loss for coming up with a better name that won't overflow 80 > columns. I'd keep the name and add a funny comment instead.