Skip to content

RFC Fix regression bugs

Xiao Ni dm-devel linux-raid 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest4 patches 18 repliesIn review
  2. v1 RFC2 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dm-raid/md: Clear MD_RECOVERY_WAIT when stopping dmraiddrivers/md/dm-raid.c drivers/md/md.c+3 -010 replies
2/4md: Set MD_RECOVERY_FROZEN before stop sync threaddrivers/md/md.c+1 -02 replies
3/4md: Missing decrease active_io for flush iodrivers/md/md.c+5 -12 replies
4/4md/raid5: Don't check crossing reshape when reshape hasn't starteddrivers/md/raid5.c+10 -122 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH RFC V2 0/4] Fix regression bugs

Hi all

Sorry, I know this patch set conflict with Yu Kuai's patch set. But I have to send out this patch set. Now we're facing some deadlock regression problems. So it's better to figure out the root cause and fix them. But Kuai's patch set looks too complicate for me. And like we're talking in the emails, Kuai's patch set breaks some rules. It's not good to fix some problem by breaking the original logic. If we really need to break some logic. It's better to use a distinct patch set to describe why we need them.

This patch is based on linus's tree. The tag is 6.8-rc5. If this patch set can be accepted. We need to revert Kuai's patches which have been merged in Song's tree (md-6.8-20240216 tag). This patch set has four patches. The first two resolves deadlock problems. With these two patches, it can resolve most deadlock problem. The third one fixes active_io counter bug. The fouth one fixes the raid5 reshape deadlock problem.

I have run lvm2 regression test. There are 4 failed cases:
shell/dmsetup-integrity-keys.sh shell/lvresize-fs-crypt.sh
shell/pvck-dump.sh
shell/select-report.sh

Xiao Ni (4):
Clear MD_RECOVERY_WAIT when stopping dmraid
Set MD_RECOVERY_FROZEN before stop sync thread
md: Missing decrease active_io for flush io Don't check crossing reshape when reshape hasn't started

 drivers/md/dm-raid.c |  2 ++
 drivers/md/md.c      |  8 +++++++-
 drivers/md/raid5.c   | 22 ++++++++++------------
 3 files changed, 19 insertions(+), 13 deletions(-)
Signature · 1 line
2.32.0 (Apple Git-132)