Re: [PATCH v3 01/11] block: make generic_make_request handle arbitrarily sized bios

From: Ming Lin
Date: Fri May 22 2015 - 03:51:22 EST


On 05/18/2015 10:22 AM, Christoph Hellwig wrote:
> 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.

How about below?