Skip to content
Commit 45a4d8fd authored by ChangSyun Peng's avatar ChangSyun Peng Committed by Song Liu
Browse files

md/raid5: Allow degraded raid6 to do rmw



Degraded raid6 always do reconstruct-write now. With raid6 xor supported,
we can do rmw in degraded raid6. This patch can reduce many read IOs to
improve performance.

If the failed disk is P, Q or the disk we want to write to, we may need to
do reconstruct-write in max degraded raid6. In this situation we can not
read enough data from handle_stripe_dirtying() so we have to set force_rcw
in handle_stripe_fill() to read all data.

Reviewed-by: default avatarAlex Wu <alexwu@synology.com>
Reviewed-by: default avatarBingJing Chang <bingjingc@synology.com>
Reviewed-by: default avatarDanny Shih <dannyshih@synology.com>
Signed-off-by: default avatarChangSyun Peng <allenpeng@synology.com>
Signed-off-by: default avatarSong Liu <songliubraving@fb.com>
parent a1c6ae3d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment