diff options
author | 2021-02-04 15:50:47 +0800 | |
---|---|---|
committer | 2021-03-24 16:29:07 -0700 | |
commit | 254c271da0712ea8914f187588e0f81f7678ee2f (patch) | |
tree | 36beb2442114ce09334a1c377b71f0399df30456 /include/linux/blkdev.h | |
parent | md/raid10: improve raid10 discard request (diff) | |
download | wireguard-linux-254c271da0712ea8914f187588e0f81f7678ee2f.tar.xz wireguard-linux-254c271da0712ea8914f187588e0f81f7678ee2f.zip |
md/raid10: improve discard request for far layout
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.
Tested-by: Adrian Huang <ahuang12@lenovo.com>
Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Diffstat (limited to 'include/linux/blkdev.h')
0 files changed, 0 insertions, 0 deletions