diff options
author | Xiao Ni <xni@redhat.com> | 2020-09-02 15:00:23 +0300 |
---|---|---|
committer | Song Liu <songliubraving@fb.com> | 2020-09-25 02:44:45 +0300 |
commit | d3ee2d8415a6256c1c41e1be36e80e640c3e6359 (patch) | |
tree | 8517646317457beb0a9a3662320686ac46cfea6a /drivers/md/raid10.h | |
parent | bcc90d280465ebd51ab8688be86e1f00c62dccf9 (diff) | |
download | linux-d3ee2d8415a6256c1c41e1be36e80e640c3e6359.tar.xz |
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.
Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Diffstat (limited to 'drivers/md/raid10.h')
-rw-r--r-- | drivers/md/raid10.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid10.h b/drivers/md/raid10.h index 79cd2b7d3128..1461fd55311b 100644 --- a/drivers/md/raid10.h +++ b/drivers/md/raid10.h @@ -179,5 +179,6 @@ enum r10bio_state { R10BIO_Previous, /* failfast devices did receive failfast requests. */ R10BIO_FailFast, + R10BIO_Discard, }; #endif |