aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorChangSyun Peng <[email protected]>2020-07-31 17:50:17 +0800
committerSong Liu <[email protected]>2020-08-02 23:54:25 -0700
commita1c6ae3d9f3dd6aa5981a332a6f700cf1c25edef (patch)
tree24a23854defd0f5f4d2f93d9aa0cd880856680f7 /lib/test_overflow.c
parent3a31cf3d210f85d57fd302d83514832ebacb3ca7 (diff)
md/raid5: Fix Force reconstruct-write io stuck in degraded raid5
In degraded raid5, we need to read parity to do reconstruct-write when data disks fail. However, we can not read parity from handle_stripe_dirtying() in force reconstruct-write mode. Reproducible Steps: 1. Create degraded raid5 mdadm -C /dev/md2 --assume-clean -l5 -n3 /dev/sda2 /dev/sdb2 missing 2. Set rmw_level to 0 echo 0 > /sys/block/md2/md/rmw_level 3. IO to raid5 Now some io may be stuck in raid5. We can use handle_stripe_fill() to read the parity in this situation. Cc: <[email protected]> # v4.4+ Reviewed-by: Alex Wu <[email protected]> Reviewed-by: BingJing Chang <[email protected]> Reviewed-by: Danny Shih <[email protected]> Signed-off-by: ChangSyun Peng <[email protected]> Signed-off-by: Song Liu <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions