]> git.hungrycats.org Git - linux/commitdiff
replace-fixes: TESTING: drop the dasync-raid5 case
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Mon, 2 Nov 2026 23:35:02 +0000 (18:35 -0500)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Mon, 2 Nov 2026 23:35:02 +0000 (18:35 -0500)
The case could only be BLIND (no discard reaches a raid5 member) and is
gone from replace-discard-test.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
topics/replace-fixes/TESTING.md

index 2d5749a14572e03dca656ef86679c22c4b29c3bf..54a285cbd0bb3c437a4deea0a58db37c49ad24d4 100644 (file)
@@ -217,10 +217,10 @@ unwritten target sector).  These rows run WITH discards, so:
   but the target copy is gone) / FAIL(enospc:...) / BLIND.
 
 Cases (fresh fs each, devid 1 replaced by a sparse target behind dm-delay
-20 ms, 250 ms for dasync-raid1; 16 GiB devices; a writer adds / fsyncs /
+20 ms, 250 ms for dasync; 16 GiB devices; a writer adds / fsyncs /
 deletes 4 MiB files, 1 GiB, during the replace): fstrim (one fstrim
 mid-copy, nodiscard mount), dsync (mount -o discard=sync), dasync
-(discard=async), noK (replace without -K: progs discards the whole,
+(discard=async, raid1 only: no discard reaches a raid5 member), noK (replace without -K: progs discards the whole,
 unpoisoned target before the start), mkfsnoK (mkfs without -K), each on
 raid1 and raid5 (metadata raid1), fstrim also on single (data single,
 metadata dup: nothing masks it); resume-single: crash image (dm suspend
@@ -247,7 +247,7 @@ eaec6d55 (the rest, and every candidate case).  Evidence:
 | `replace-discard-test.sh` fstrim-raid5 (metadata raid1) | as above, raid5 | upstream: Josef 5/5 | ~6 min | **base FAIL (loss of the target copy, silent to the user)**: every file reads back (rebuilt from parity), replace "finished, 0 errs", scrub -r 169296 csum errors on devid 1 (both lanes). **cand PASS**: scrub 0 | same | same | same | .../fstrim-raid5 |
 | `replace-discard-test.sh` resume-single | crash image of a running replace, the kthread resumes it at mount, one fstrim during the resumed copy | upstream: Josef 5/5 (and 9 for the mount) | ~2 min | **base FAIL (loss)** both lanes, as fstrim-single; **cand PASS** both (resumed target also skipped: 0 discard sectors on it). Crash cursor 0 (item not yet committed) | same | same | eaec6d55 | .../{618,mn}-{base2,cand}/resume-single |
 | `replace-discard-test.sh` dsync-raid1, dsync-raid5 (control) | mount -o discard=sync with a writer adding / deleting during the replace | regression (1-10) | ~2 / ~6 min | PASS on all four kernels; member discards during the replace: raid1 ~383000 sectors, raid5 ~26000 (raid1 metadata frees only: raid56 data is never discarded) | same | same | 5bca9c14 / eaec6d55 | .../dsync-* |
-| `replace-discard-test.sh` dasync-raid1 (control), dasync-raid5 | mount -o discard=async; raid1 at 250 ms dm-delay so the replace outlasts the 2 min async delay | regression (1-10) | ~4 / ~6 min | raid1 PASS on all four (~330000-377000 discarded sectors during the replace). raid5 **BLIND** on all four: no discard reaches a member (btrfs_map_discard() refuses RAID5/6, "we don't discard raid56 yet"; control without a replace: same) | same | same | eaec6d55 | .../dasync-*, r5async-control.txt |
+| `replace-discard-test.sh` dasync-raid1 (control) | mount -o discard=async; 250 ms dm-delay so the replace outlasts the 2 min async delay | regression (1-10) | ~4 min | PASS on all four (~330000-377000 discarded sectors during the replace) | same | same | eaec6d55 | .../dasync-raid1 |
 | `replace-discard-test.sh` noK-raid1, noK-raid5 (control) | replace without -K: progs discards the whole, unpoisoned target before the copy | regression (1-10) | ~2 / ~6 min | PASS on all four (target +33554432 discard sectors before the copy, marker region zero) | same | same | eaec6d55 | .../noK-* |
 | `replace-discard-test.sh` mkfsnoK-raid1, mkfsnoK-raid5 (control) | mkfs without -K (members discarded at mkfs), then replace | regression (1-10) | ~2 / ~6 min | PASS on all four (mkfs discarded 67108864 / 100663296 sectors) | same | same | eaec6d55 | .../mkfsnoK-* |
 | `replace-status-test.sh` RS_MOUNT_OPTS=noatime,discard=async (clean, cancel, unc-raid1, unc-raid5, werr) | the status / cancel / write-error paths with async discard on | 2, 3, 5, 7 | ~15 min | PASS, same as nodiscard: unc 3/3 (raid1, raid5), werr canceled "failed -5" at 15.9% with 16384 write errs, source write_io_errs 0, cancel at 3.4%; unc-raid5 target strip check invalid(discard), not run. Discards issued not measured | 2026-10-31 21:45-21:59 (6.18), 22:04-22:28 (mn) | cand kernels #5 / #29 (the patch only touches FITRIM) | eaec6d55 | .../{618,mn}-dasync-reruns/rs-* |