Re: [BUG] Regression introduced with "block: split bios to max possible length"

From: Ming Lei
Date: Fri Jan 22 2016 - 12:48:14 EST


On Sat, Jan 23, 2016 at 1:03 AM, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Fri, Jan 22, 2016 at 7:06 AM, Ming Lei <tom.leiming@xxxxxxxxx> wrote:
>>
>> Yes, it is one problem, something like below does fix my test
>> with 4K block size.
>
> It just doesn't look very legible.

OK, I will try to make it better.

>
> Also, how could this
>
>> - goto split;
>> + if (sectors)
>> + goto split;
>
> ever matter? If sectors is 0, something is seriously wrong afaik.

I guess that is possible because blk_max_size_offset() depends on
offset and may return a small size which is less than logical
block size.

--
Ming Lei