On 19.05.2021 03:30, Guoqing Jiang wrote: > Hmm, raid0 allocates split bio from mddev->bio_set, but raid5 is > different, it splits bio from r5conf->bio_split. So either let raid5 also > splits bio from mddev->bio_set, or add an additional checking for > raid5. Thoughts? It looks like raid5 has a different bio set for that because it uses mddev->bio_set for something else - allocating a bio for rdev. So I think it can be changed to split from mddev->bio_set and have a private bio set for the rdev bio allocation.