Hi all
Sorry, please ignore this version. I changed the name of these patches
and re-sent them just now.
Regards
Xiao
On 08/13/2020 02:44 PM, Xiao Ni wrote:
Hi all
Now mkfs on raid10 which is combined with ssd/nvme disks takes a long time.
This patch set tries to resolve this problem.
v1:
Coly helps to review these patches and give some suggestions:
One bug is found. If discard bio is across one stripe but bio size is bigger
than one stripe size. After spliting, the bio will be NULL. In this version,
it checks whether discard bio size is bigger than 2*stripe_size.
In raid10_end_discard_request, it's better to check R10BIO_Uptodate is set
or not. It can avoid write memory to improve performance.
Add more comments for calculating addresses.
v2:
Fix error by checkpatch.pl
Fix one bug for offset layout. v1 calculates wrongly split size
Add more comments to explain how the discard range of each component disk
is decided.
v3:
add support for far layout
Xiao Ni (4):
Move codes related with submitting discard bio into one function
extend r10bio devs to raid disks
improve raid10 discard request
Improve discard request for far layout
drivers/md/md.c | 23 ++++
drivers/md/md.h | 3 +
drivers/md/raid0.c | 15 +--
drivers/md/raid10.c | 338 +++++++++++++++++++++++++++++++++++++++++++++++++++-
drivers/md/raid10.h | 1 +
5 files changed, 361 insertions(+), 19 deletions(-)