Re: [patch 1/2]block: discard granularity might not be power of 2

2012-12-14 Thread Jens Axboe
On 2012-12-14 04:15, Shaohua Li wrote: > In MD raid case, discard granularity might not be power of 2, for example, a > 4-disk raid5 has 3*chunk_size discard granularity. Correct the calculation for > such cases. Thanks Shaohua, applied both. -- Jens Axboe -- To unsubscribe from this list:

Re: [patch 1/2]block: discard granularity might not be power of 2

2012-12-14 Thread Jens Axboe
On 2012-12-14 04:15, Shaohua Li wrote: In MD raid case, discard granularity might not be power of 2, for example, a 4-disk raid5 has 3*chunk_size discard granularity. Correct the calculation for such cases. Thanks Shaohua, applied both. -- Jens Axboe -- To unsubscribe from this list: send

[patch 1/2]block: discard granularity might not be power of 2

2012-12-13 Thread Shaohua Li
In MD raid case, discard granularity might not be power of 2, for example, a 4-disk raid5 has 3*chunk_size discard granularity. Correct the calculation for such cases. Reported-by: Neil Brown Signed-off-by: Shaohua Li --- block/blk-lib.c| 23 +--

[patch 1/2]block: discard granularity might not be power of 2

2012-12-13 Thread Shaohua Li
In MD raid case, discard granularity might not be power of 2, for example, a 4-disk raid5 has 3*chunk_size discard granularity. Correct the calculation for such cases. Reported-by: Neil Brown ne...@suse.de Signed-off-by: Shaohua Li s...@fusionio.com --- block/blk-lib.c| 23