Re: [PATCH] md/raid5: limit request size according to implementation limits

2016-11-29 Thread Shaohua Li
On Sun, Nov 27, 2016 at 07:32:32PM +0300, Konstantin Khlebnikov wrote: > Current implementation employ 16bit counter of active stripes in lower > bits of bio->bi_phys_segments. If request is big enough to overflow > this counter bio will be completed and freed too early. > > Fortunately this not h

Re: [PATCH] md/raid5: limit request size according to implementation limits

2016-11-27 Thread Konstantin Khlebnikov
On Mon, Nov 28, 2016 at 7:40 AM, Coly Li wrote: > On 2016/11/28 上午12:32, Konstantin Khlebnikov wrote: >> Current implementation employ 16bit counter of active stripes in lower >> bits of bio->bi_phys_segments. If request is big enough to overflow >> this counter bio will be completed and freed too

Re: [PATCH] md/raid5: limit request size according to implementation limits

2016-11-27 Thread Coly Li
On 2016/11/28 上午12:32, Konstantin Khlebnikov wrote: > Current implementation employ 16bit counter of active stripes in lower > bits of bio->bi_phys_segments. If request is big enough to overflow > this counter bio will be completed and freed too early. > > Fortunately this not happens in default c

[PATCH] md/raid5: limit request size according to implementation limits

2016-11-27 Thread Konstantin Khlebnikov
Current implementation employ 16bit counter of active stripes in lower bits of bio->bi_phys_segments. If request is big enough to overflow this counter bio will be completed and freed too early. Fortunately this not happens in default configuration because several other limits prevent that: stripe