On Thu, Aug 13, 2020 at 1:15 AM Xiao Ni <xni@xxxxxxxxxx> wrote: > > For far layout, the discard region is not continuous on disks. So it needs > far copies r10bio to cover all regions. It needs a way to know all r10bios > have finish or not. Similar with raid10_sync_request, only the first r10bio > master_bio records the discard bio. Other r10bios master_bio record the first > r10bio. The first r10bio can finish after other r10bios finish and then return > the discard bio. > > Signed-off-by: Xiao Ni <xni@xxxxxxxxxx> 1/4 and 2/4 of the set looks good to me. But we will need more work on 3 and 4. Please refer to comments in 3/4. Please also rebase on top of the latest md-next branch, and try fix warnings from checkpatch.pl. Thanks, Song