Re: [PATCH] bug fix in function check_should_bypass

2018-09-27 Thread Kent Overstreet
On Thu, Sep 27, 2018 at 04:27:49PM +0800, Dongbo Cao wrote: > bio->bi_iter.bi_sector is the sector index of current request, no need to be > aligned. > instead, bio->bi_iter.bi_size should be aligned to block_bytes-1, not > block_size-1. > and bio_sectors is the number of sectors of current reque

[PATCH] bug fix in function check_should_bypass

2018-09-27 Thread Dongbo Cao
bio->bi_iter.bi_sector is the sector index of current request, no need to be aligned. instead, bio->bi_iter.bi_size should be aligned to block_bytes-1, not block_size-1. and bio_sectors is the number of sectors of current request, also no need to be aligned, just remove it. Signed-off-by: Dongb