]> git.hungrycats.org Git - linux/commitdiff
covers: drop TESTING.md pointers, lane wording and harness paths
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Fri, 6 Nov 2026 06:33:01 +0000 (01:33 -0500)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Fri, 6 Nov 2026 06:33:01 +0000 (01:33 -0500)
Zygo 2026-11-06: TESTING.md and the lanes do not belong in cover
letters; an upstream reviewer gets only the cover letter and patches.

In the 18 covers that had them: no "details in TESTING.md" pointers;
Subject lines of allocator-hints and read-policies lose "as carried on
misc-next"; "misc-next lane" / "misc-next and 6.18" test-kernel lists
become the kernel config facts (KASAN, lockdep); comparisons against
"the lanes" / "previous lane kernels" become "without the series" (or
name the earlier level patch); "Port notes for misc-next" become
"Changes for the current base"; the lane-only paragraphs about patches
carried ahead of the series (Cheng's devid kobject fix, Josef's data
integrity fixes) shrink to what a reviewer needs (posted separately,
why it matters); the stripe-alloc lane-only extract-hook paragraph
(folds into patches 4 and 40 at the next export) is dropped; harness,
forensics, ck110x tags and README pointers are reworded or dropped.
Only touched paragraphs are reflowed; shortlog/diffstat/base-commit
untouched.  TESTING.md files keep the lane detail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 files changed:
topics/allocator-hints/0000-cover-letter.patch
topics/balance-resume/0000-cover-letter.patch
topics/compress-fixes/0000-cover-letter.patch
topics/deadlock-fixes/0000-cover-letter.patch
topics/dedupe-fixes/0000-cover-letter.patch
topics/dedupe-mtime/0000-cover-letter.patch
topics/delalloc-fixes/0000-cover-letter.patch
topics/dev-extent-defrag/0000-cover-letter.patch
topics/logical-ino-costs/0000-cover-letter.patch
topics/low-space/0000-cover-letter.patch
topics/prealloc-size/0000-cover-letter.patch
topics/raid56-scrub-replace/0000-cover-letter.patch
topics/read-policies/0000-cover-letter.patch
topics/read-repair-fixes/0000-cover-letter.patch
topics/reflink-inline-fixes/0000-cover-letter.patch
topics/replace-fixes/0000-cover-letter.patch
topics/resize-missing/0000-cover-letter.patch
topics/stripe-alloc/0000-cover-letter.patch

index d17bc63556bc524429aceba03adbd2e5eee0387b..a38ef713a0feaffd9ffcd02cedc141dbd5cc4a47 100644 (file)
@@ -1,29 +1,28 @@
 From b3af80d4e58b937314a4840129845611db1b825e Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 31 Oct 2026 01:04:05 -0400
-Subject: [PATCH 00/12] btrfs: allocator hints (Kai Krakow's series, as carried on misc-next)
+Subject: [PATCH 00/12] btrfs: allocator hints (Kai Krakow's series)
 To: linux-btrfs@vger.kernel.org
 
 Kai Krakow's allocator hint series (patches 1-7), with KeinNiemand's
-fixed-width mirror fix (patch 8) and four follow-ups (patches 9-12),
-as carried on this misc-next lane.  A per-device hint in the DEV_ITEM
-type field (preferred or only for data or metadata, avoid new
-allocations, or no allocations at all) steers the chunk allocator; it
-is shown and changed through /sys/fs/btrfs/<uuid>/devinfo/<devid>/type,
-under CONFIG_BTRFS_ALLOCATOR_HINTS.  Mixed block groups ignore it.
+fixed-width mirror fix (patch 8) and four follow-ups (patches 9-12).  A
+per-device hint in the DEV_ITEM type field (preferred or only for data
+or metadata, avoid new allocations, or no allocations at all) steers the
+chunk allocator; it is shown and changed through
+/sys/fs/btrfs/<uuid>/devinfo/<devid>/type, under
+CONFIG_BTRFS_ALLOCATOR_HINTS.  Mixed block groups ignore it.
 
 The authors' own postings are authoritative for patches 1-8; they are
-included so the lane's branch applies as one series.
+included so that the series applies as one.
 
 Follow-ups:
 
-On misc-next the topic also carries, at its head and ahead of the
-patches numbered here, Cheng Yongkang's "[PATCH v2] btrfs: remove devid
-kobject when deleting a missing device" (2026-10-26, Reviewed-by: Qu
-Wenruo), as posted, until upstream takes it: deleting a missing device
-freed the btrfs_device with its devid kobject still registered, so
-reading any devinfo attribute was a use-after-free, and patch 4 adds a
-writable attribute under that kobject.
+Patch 4 adds a writable attribute under the devid kobject.  Deleting a
+missing device frees the btrfs_device with its devid kobject still
+registered, so reading any devinfo attribute is a use-after-free; Cheng
+Yongkang's "[PATCH v2] btrfs: remove devid kobject when deleting a
+missing device" (2026-10-26, Reviewed-by: Qu Wenruo), posted separately,
+fixes that.
 
 Patch 9 moves the hint values out of the UAPI header into
 fs/btrfs/volumes.h: a CONFIG_ symbol in a UAPI header makes
@@ -49,12 +48,12 @@ the filesystem aborted the transaction with ENOSPC and forced it
 read-only, while statfs still offered 3 GiB.  The patch shares the hint
 rules between the allocator and the estimates, which are kept separately
 for data and metadata.  With it the same fill ends in a clean ENOSPC.
-Reproducer: alloc-hints-space-test.sh (see TESTING.md).  Kai, this patch
-doubles as the bug report for your series.
+Reproducer: alloc-hints-space-test.sh.  Kai, this patch doubles as the
+bug report for your series.
 
-Port notes for misc-next: btrfs_update_device() is already non-static
-upstream (the prototype is not re-added), and BTRFS_DEV_STATE_TYPE_DIRTY
-is bit 8 because misc-next uses 6 and 7.
+Changes for the current base: btrfs_update_device() is already
+non-static upstream (the prototype is not re-added), and
+BTRFS_DEV_STATE_TYPE_DIRTY is bit 8 because the base uses 6 and 7.
 
 Kai Krakow (7):
   btrfs: add new Kconfig option for btrfs allocator hints
index fbe519ccca8f67cadcfec400988b789f46db9b7e..825591e93a0bb0f7596f93b0742b86e7e72bf620 100644 (file)
@@ -75,7 +75,7 @@ surprising behavior and code in the kernel to avoid a one-time issue
 that affects few users, is relatively easy to recover from, and will
 become irrelevant forever once the last users running old kernels upgrade.
 
-Testing (KASAN kernels, misc-next and 6.18):
+Testing (KASAN kernels):
 
  - balance-resume-test.sh: a single-profile filesystem with several data
    chunks, most ~100% full; a data balance started and paused after its
@@ -102,10 +102,10 @@ Testing (KASAN kernels, misc-next and 6.18):
    bound).  On a kernel that still adds soft on resume, the dup chunk is
    skipped and the test fails.
 
- - remap-balance-resume-test.sh (remap-tree filesystems, misc-next
-   only): a METADATA_REMAP chunk placed above slow data chunks, a full
-   -d -m balance paused after the walk passed it, unmount, resume; the
-   remap chunk must be inside the resumed range and emptied.  Making the
+ - remap-balance-resume-test.sh (remap-tree filesystems): a
+   METADATA_REMAP chunk placed above slow data chunks, a full -d -m
+   balance paused after the walk passed it, unmount, resume; the remap
+   chunk must be inside the resumed range and emptied.  Making the
    filesystem needs an --enable-experimental btrfs-progs with a mkfs fix
    for remap-tree to fix a NULL deref bug.
 
index 188f4f1ea8acef2a675bc8d2e9372b3682ab7167..f07794da8fb51c7ad33411bd84ea99e14b74ef93 100644 (file)
@@ -5,7 +5,7 @@ Subject: [PATCH 0/11] btrfs: fix and simplify inode flag vs compression interact
 To: linux-btrfs@vger.kernel.org
 
 This series fixes problems in the interaction between btrfs inode flags
-and compression properties.  Since 2026-11-03 (ck1103) it is built on
+and compression properties.  Since 2026-11-03 it is built on
 koraynilay's "[PATCH v6 RESEND 0/6] btrfs: add per-inode compression
 levels in xattrs" (Message-ID
 <20261103194734.598182-1-koray.fra@gmail.com>), which replaces our own
@@ -83,24 +83,23 @@ that old kernels accepted and ignored, so for example
 fails on such a value.  Patch 11 makes sure values already on disk keep
 working.
 
-Testing (KASAN kernels; details in TESTING.md next to these patches):
-compress-props-test.sh passes on the misc-next and 6.18 test kernels
-with the series: the one-ioctl flag matrix of patches 8-9, strict
-property values (including the embedded NUL), the inheritance cases of
-patch 1, the level rule (compsize of the same data: "zlib" on a
-compress=zstd:15 mount equals zlib:3, "zstd" equals zstd:15), and a
-fixture image whose values were written by Debian's 6.12 kernel (each
-compresses with the named algorithm, an unparseable level acts as
-unspecified).  On the same kernels without patches 10-11 exactly the
-NUL case and the legacy-value cases fail; on the previous lane kernels
-(our old level patch) the level-rule case fails (zlib:9).  fstests
+Testing (KASAN kernels): compress-props-test.sh passes with the series:
+the one-ioctl flag matrix of patches 8-9, strict property values
+(including the embedded NUL), the inheritance cases of patch 1, the
+level rule (compsize of the same data: "zlib" on a compress=zstd:15
+mount equals zlib:3, "zstd" equals zstd:15), and a fixture image whose
+values were written by Debian's 6.12 kernel (each compresses with the
+named algorithm, an unparseable level acts as unspecified).  On the same
+kernels without patches 10-11 exactly the NUL case and the legacy-value
+cases fail; with our earlier per-inode level patch instead of
+koraynilay's series, the level-rule case fails (zlib:9).  fstests
 btrfs/349 (levels) and btrfs/350 (flag matrix; neither upstream yet)
 pass.
 
-Note for the integration tree: patch 5 changes the prop_handler
-extract() prototype.  The stripe_alloc topic's two property handlers
-are not inheritable and, since 2026-11-04 (ck1104), set no extract hook
-at all, so the two series merge without a resolution.
+Note for merging with the stripe_alloc series: patch 5 changes the
+prop_handler extract() prototype.  That series' two property handlers
+are not inheritable and set no extract hook at all, so the two series
+merge without a resolution.
 
 Filipe Manana (1):
   btrfs: dont propagate nodatacow mount option on files with inherited
index df418c40de631201db5129e04e4a7005c9b05293..00827480564bd82408373aac773cead93e2b1885 100644 (file)
@@ -37,16 +37,16 @@ each slice of a folio while holding the folio locked and partly dirty;
 the flush it waits for blocks on that folio lock.  All slices are now
 reserved before any is dirtied.
 
-Testing (KASAN kernels, details in TESTING.md next to these patches): a
-deduplication workload over sources with an inline extent followed by a
-regular one (built with fallocate, the layout patch 2 is about), under
-flushoncommit commit pressure, deadlocks in 83 s with patch 2 reverted and
-runs 600 s (720k dedupes) clean with it; the inline-only dedupe reproducer
-and the relocation reproducer (900 s runs, a race) are clean with the
-series.  The inline reflink tests check that umount returns (an earlier
-version that relocked an unaligned range left a block locked), the
-mixed-layout dedupe ran 607 s clean with the relock, and a forced stuck
-delalloc bit makes both lock loops return -EUCLEAN with the message.
+Testing (KASAN kernels): a deduplication workload over sources with an
+inline extent followed by a regular one (built with fallocate, the
+layout patch 2 is about), under flushoncommit commit pressure, deadlocks
+in 83 s with patch 2 reverted and runs 600 s (720k dedupes) clean with
+it; the inline-only dedupe reproducer and the relocation reproducer (900
+s runs, a race) are clean with the series.  The inline reflink tests
+check that umount returns (an earlier version that relocked an unaligned
+range left a block locked), the mixed-layout dedupe ran 607 s clean with
+the relock, and a forced stuck delalloc bit makes both lock loops return
+-EUCLEAN with the message.
 
 Patches 1-2 carry Fixes: 05a5a7621ce6, patch 3 Fixes: c2832898126f.
 
index 83bea4ff2507efd7359dd1c9970f5f4291e3b239..79ee8e50f4b06f1c8c87b5edad977aa65e376eed 100644 (file)
@@ -18,14 +18,13 @@ remap_file_range code in v4.20, the VFS compares the data one page at a
 time, so nothing needs the limit any more.  The VFS still caps a single
 request at 1 GiB.  The patch removes the limit and the loop.
 
-Testing (misc-next lane, KASAN + lockdep): dedupes of 128 MiB, 100 MiB +
-1234 bytes to EOF, 1152 MiB (two requests due to the VFS cap) and a
-64 MiB range inside extents in one call each, checking in the committed
-fs tree that the destination has exactly one item per source extent
-crossed (instead of one per 16 MiB without the patch), that every item
-shares a source extent, and that the data is unchanged.  On the base
-without the patch the same test finds 8, 7, 72 and 4 items.  Details
-and results are in TESTING.md next to this series.
+Testing (KASAN + lockdep): dedupes of 128 MiB, 100 MiB + 1234 bytes to
+EOF, 1152 MiB (two requests due to the VFS cap) and a 64 MiB range
+inside extents in one call each, checking in the committed fs tree that
+the destination has exactly one item per source extent crossed (instead
+of one per 16 MiB without the patch), that every item shares a source
+extent, and that the data is unchanged.  On the base without the patch
+the same test finds 8, 7, 72 and 4 items.
 
 Zygo Blaxell (1):
   btrfs: get rid of maximum dedupe length
index 668435998dfcd64202968c300203388ba69b1f8e..8ee7a903fa41b3f4d37776904987c3bf14ee3eac 100644 (file)
@@ -4,9 +4,8 @@ Date: Sat, 31 Oct 2026 01:04:05 -0400
 Subject: [PATCH 0/1] btrfs: keep mtime and ctime when a dedupe ends in a hole
 To: linux-btrfs@vger.kernel.org
 
-This is Ivan Kozik's patch as carried on the misc-next lane; Ivan's own
-posting is authoritative.  This note only summarizes it and how the
-lane's copy was tested.
+This is Ivan Kozik's patch; Ivan's own posting is authoritative.  This
+note only summarizes it and how this copy was tested.
 
 A dedupe whose source range ends in an implicit hole (NO_HOLES, or a
 hole left by mixed buffered and direct IO) drops the destination's file
@@ -21,13 +20,13 @@ destination's mtime and ctime.  The patch passes update_times to
 btrfs_replace_file_extents() as an argument, so the hole case in
 btrfs_clone() honours no_time_update like the extent case.
 
-Testing (misc-next lane, KASAN + lockdep): dedupe-mtime-test.sh dedupes
-a 16 MiB and a 64 MiB implicit hole over 4096 and 16384 4 KiB extents
-(21 and 80 leaves) and a partly written source; mtime and ctime are
-unchanged, while a clone and a hole punch of the same shape still change
-them, the data stays zero and the hole part has no items left.  On the
-base without the patch the 16 MiB, 64 MiB and partly written cases
-change both times.  Details are in TESTING.md next to this series.
+Testing (KASAN + lockdep): dedupe-mtime-test.sh dedupes a 16 MiB and a
+64 MiB implicit hole over 4096 and 16384 4 KiB extents (21 and 80
+leaves) and a partly written source; mtime and ctime are unchanged,
+while a clone and a hole punch of the same shape still change them, the
+data stays zero and the hole part has no items left.  On the base
+without the patch the 16 MiB, 64 MiB and partly written cases change
+both times.
 
 Ivan Kozik (1):
   btrfs: don't update mtime and ctime when deduping a range ending in a
index ad5b5555f7a1f635046eb6b08573bd9a60ec8e7c..28a6276ef536ec4d12596c9d75febee79fb1ae3b 100644 (file)
@@ -25,11 +25,11 @@ ranges stay dirty and the next writeback retries them, so the leak no
 longer happens on current kernels and that patch is dropped here.  It is
 still needed on stable trees without 095be159f3eb.
 
-Testing (KASAN kernels; details in TESTING.md next to this patch): a test
-that fills a filesystem, writes into a nodatacow file, scrubs, and syncs
-while the group is read-only (with a kprobe confirming the group was
-read-only, reading the file back from disk) reads the file back intact
-and in place with the patch, and reads its old bytes without it.
+Testing (KASAN kernels): a test that fills a filesystem, writes into a
+nodatacow file, scrubs, and syncs while the group is read-only (with a
+kprobe confirming the group was read-only, reading the file back from
+disk) reads the file back intact and in place with the patch, and reads
+its old bytes without it.
 
 Zygo Blaxell (1):
   btrfs: drain pending NOCOW writes before making a block group
index 2c5ea0ee8dc53f2fd2f20c27cebed0ac043ef57a..bad053eb2d37d17c399f06938225acb3b783f9c0 100644 (file)
@@ -24,19 +24,18 @@ persists across a mount (all three return to their defaults), so it
 applies to chunks allocated after it is set, and existing system chunks
 change size only when they are relocated (balance -f -s).
 
-Testing (misc-next lane, KASAN + lockdep): sys-chunk-size-test.sh checks
-the store (accepted, rounded, rejected and capped values, data and
-metadata behaviour unchanged) and that after `balance -f -s` every
-SYSTEM chunk and each of its dev extents has the set size, for DUP on
-one device and raid1 on three.  On the base without the patch every
-system write is EPERM.  dev-extent-frag-test.sh fills a raid0/raid1
-filesystem to full allocation, deletes most files, adds a device and
-balances, four rounds.  With all three chunk sizes at 1 GiB every
-dev_extent is 1 GiB long and starts at N GiB + 1 MiB from the second or
-third round on (3 of 3 runs, with the lane's aligned-hole preference);
-with the system chunks left at 32 MiB the layout never gets there and the
-32 MiB dev_extents multiply.  Details are in TESTING.md next to this
-series.
+Testing (KASAN + lockdep): sys-chunk-size-test.sh checks the store
+(accepted, rounded, rejected and capped values, data and metadata
+behaviour unchanged) and that after `balance -f -s` every SYSTEM chunk
+and each of its dev extents has the set size, for DUP on one device and
+raid1 on three.  On the base without the patch every system write is
+EPERM.  dev-extent-frag-test.sh fills a raid0/raid1 filesystem to full
+allocation, deletes most files, adds a device and balances, four rounds.
+With all three chunk sizes at 1 GiB every dev_extent is 1 GiB long and
+starts at N GiB + 1 MiB from the second or third round on (3 of 3 runs,
+with a separate patch that prefers aligned dev_extent holes when
+allocating chunks); with the system chunks left at 32 MiB the layout
+never gets there and the 32 MiB dev_extents multiply.
 
 Zygo Blaxell (1):
   btrfs: allow changing system dev_extent size via sysfs
index ea65a3fe5e6246e95e7621bb3a90ff1e7e56cd2f..2e9047aa02240c538df48cfe3e8f1dab8f15c49e 100644 (file)
@@ -53,8 +53,7 @@ Testing.  Patch 1 has been in every kernel of a raid56 acceptance suite
 since July, where LOGICAL_INO_V2 runs concurrently with clone-heavy
 fsstress.  Patch 2's cost was measured with the ftrace function profiler
 on a production canary machine and confirmed on a test VM by a live
-probe of the merge walk with a backref walker running.  Both are carried
-on 6.18 stable and on misc-next.
+probe of the merge walk with a backref walker running.
 
 Kai Krakow (1):
   btrfs: avoid RCU stall during backref list construction
index f21861c3e2db5adb17206407da0813d892ec55f3..80e1a8e1827ebe72b2f0918c2f88550e0f39b6bc 100644 (file)
@@ -110,12 +110,13 @@ results are not settled.  Until 2026-10-29 the data balance of the same
 test failed (rc=1): the reserve was counted in bytes, and relocation
 under stripe_alloc needs whole stripes.  With patch 2 as posted (the
 share of a held group is capped at its claimable stripes between
-rescans, and a claimed run's remainder leaves it), one misc-next run
-completed both balances and every file verified, while the arm without
-the reserve aborted with ENOSPC; on 6.18 the same arm ran past 6000 and
+rescans, and a claimed run's remainder leaves it), one run completed
+both balances and every file verified, while the arm without the reserve
+aborted with ENOSPC; two other runs of the reserve arm ran past 6000 and
 9000 s caps without a verdict, in the slow unlinks of a full metadata
 space (unlinks waiting on commits), which are slow without the reserve
-too (about 50 minutes).  This is why the reserve stays off by default there too.
+too (about 50 minutes).  This is why the reserve stays off by default
+there too.
 
 System chunks are not covered: balance -m relocates them too, and a
 full filesystem can still fail there.
@@ -128,15 +129,15 @@ and never touches the global reserve.  At the fill edge a refill then
 fails with ENOSPC and merge_reloc_roots() forces the filesystem
 read-only, although delayed refs, a commit (9 MiB was pinned) or the
 global reserve would have covered it.  On a 6-device raid5 filesystem
-under fsstress with every device allocated, background reclaim aborted this way 3 times out of 3;
-with the patch, 6 runs had no merge failure, and every refill that
-needed flushing was served by the delayed-ref states.  The patch
-refills with BTRFS_RESERVE_FLUSH_EVICT.  Its message explains why
-FLUSH_LIMIT was chosen (killability, not a deadlock), why no other mode
-fits, and why flushing here cannot deadlock.  A second abort at the same
-edge is not fixed here: a commit's delayed refs can still run out of
-metadata after a relocation pins a burst of freed tree blocks (see
-TESTING.md).
+under fsstress with every device allocated, background reclaim aborted
+this way 3 times out of 3; with the patch, 6 runs had no merge failure,
+and every refill that needed flushing was served by the delayed-ref
+states.  The patch refills with BTRFS_RESERVE_FLUSH_EVICT.  Its message
+explains why FLUSH_LIMIT was chosen (killability, not a deadlock), why
+no other mode fits, and why flushing here cannot deadlock.  A second
+abort at the same edge is not fixed here: a commit's delayed refs can
+still run out of metadata after a relocation pins a burst of freed tree
+blocks.
 
 Zygo Blaxell (3):
   btrfs: print the error when reclaim fails to relocate a block group
index b66e0e8afdf80dd3d24a3510ab148eaa6b823443..0eaf395453e121791e529ae2ff390efb58610dce 100644 (file)
@@ -12,14 +12,13 @@ whole extents) and buy nothing.  The patch makes prealloc use
 BTRFS_MAX_EXTENT_SIZE too.  Zoned filesystems cannot preallocate, so
 they are unaffected.
 
-Testing (misc-next lane, KASAN + lockdep): prealloc-size-test.sh
-fallocates 1 GiB (8 x 128 MiB items), 300 MiB (128 + 128 + 44 MiB) and
-512 MiB with --keep-size beyond EOF (4 x 128 MiB, i_size unchanged) on a
-filesystem with 1 GiB data block groups, writes into the preallocation,
-runs a data balance and verifies the data; no file extent item or
-EXTENT_ITEM is larger than 128 MiB.  On the base without the patch the
-same fallocates make 256 MiB extents, which the balance relocates
-unchanged.  Details are in TESTING.md next to this series.
+Testing (KASAN + lockdep): prealloc-size-test.sh fallocates 1 GiB (8 x
+128 MiB items), 300 MiB (128 + 128 + 44 MiB) and 512 MiB with
+--keep-size beyond EOF (4 x 128 MiB, i_size unchanged) on a filesystem
+with 1 GiB data block groups, writes into the preallocation, runs a data
+balance and verifies the data; no file extent item or EXTENT_ITEM is
+larger than 128 MiB.  On the base without the patch the same fallocates
+make 256 MiB extents, which the balance relocates unchanged.
 
 Zygo Blaxell (1):
   btrfs: use BTRFS_MAX_EXTENT_SIZE in prealloc
index 48a0be19dc15850641ded67abf7e719ce8ab2ed4..78feb5ce983de11d67e6ec49c40f3dbf537ae5d6 100644 (file)
@@ -114,15 +114,14 @@ the parity scrub only when the data device is not being scrubbed at the
 same time, and not at all in a read-only scrub or after an abort.
 Fixes: 1009254bf22a.
 
-Testing: a raid5 filesystem filled with block-location-identifying
-data in partially filled stripes, two devices corrupted in chosen rows,
-every block classified (readable, content, EIO) before and after
-replace, scrub and -r replace, with every device including the target
-prefilled with a device-identifying pattern and discard disabled.  With
-the series, no replace loses a block that was recoverable before it, no
+Testing: a raid5 filesystem filled with block-location-identifying data
+in partially filled stripes, two devices corrupted in chosen rows, every
+block classified (readable, content, EIO) before and after replace,
+scrub and -r replace, with every device including the target prefilled
+with a device-identifying pattern and discard disabled.  With the
+series, no replace loses a block that was recoverable before it, no
 no-extent sector of a row with live data is left unwritten on the
-target, and no data lands at the wrong place, on misc-next and 6.18,
-under KASAN.
+target, and no data lands at the wrong place, under KASAN.
 
 Zygo Blaxell (12):
   btrfs: scrub: check raid56 parity of the rows without unrepaired data
index 3ae25bc659a02ec275a5d1408c6c2338023010ac..c88972a914381752fb2d1d0c30036abfa2958869 100644 (file)
@@ -1,24 +1,22 @@
 From 76eb4edbade0c6ba280af99ef5e91f204e04d6d4 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 31 Oct 2026 01:04:05 -0400
-Subject: [PATCH 0/9] btrfs: read policies and per-device read stats (Kai Krakow's series, as carried on misc-next)
+Subject: [PATCH 0/9] btrfs: read policies and per-device read stats (Kai Krakow's series)
 To: linux-btrfs@vger.kernel.org
 
-Kai Krakow's read policy series, as carried on this misc-next lane:
-per-device read statistics in devinfo, read policies moved out of
-experimental, the in-flight "queue" policy with mirror-age tie breaking,
-read latency health statistics, and the "queue-adaptive" policy with a
-latency-scaled guard (CONFIG_BTRFS_READ_POLICIES,
-CONFIG_BTRFS_PER_DEVICE_IO_STATS).
+Kai Krakow's read policy series: per-device read statistics in devinfo,
+read policies moved out of experimental, the in-flight "queue" policy
+with mirror-age tie breaking, read latency health statistics, and the
+"queue-adaptive" policy with a latency-scaled guard
+(CONFIG_BTRFS_READ_POLICIES, CONFIG_BTRFS_PER_DEVICE_IO_STATS).
 
-Kai's own postings are authoritative; this copy is included so the
-lane's branch applies as one series.
+Kai's own postings are authoritative; this copy is included so that the
+series applies as one.
 
-Port notes for misc-next: no offload_csum_mode (gone upstream), and
+Changes for the current base: no offload_csum_mode (gone upstream), and
 sysfs.c includes <linux/string_choices.h> instead of <crypto/hash.h>.
 It conflicts with the allocator hints series in Kconfig, sysfs.c and
-volumes.c; the resolution is the union of both (see the post-merge
-fixup in this repository's README).
+volumes.c; the resolution is the union of both.
 
 Kai Krakow (9):
   btrfs: add io read stats per device to devinfo
index e52c09a3c84c401f678a016563e6c9c7748a011f..70f87d1d069bde216891493a01d00f8f4cad78c6 100644 (file)
@@ -42,18 +42,17 @@ copy to a dev-replace target still goes out.
 The rule for writes after an abort is being revised upstream, so patches
 3 and 4 carry no stable tag; patches 1 and 2 do.
 
-Tested on misc-next and 6.18, KASAN kernels.  A write detector counts
-every write, discard and flush to the member devices from the abort to
-after unmount; a known write inside that window is counted in every
-valid run.
-- Read after an abort, one mirror corrupt: the lanes return -EIO; with
-  the series, correct data and no writes (3 of 3 per lane).
-- Emergency shutdown (misc-next): the lane rewrites the bad copy (16
-  writes); with the series, none.
-- Scrub after an abort: the lanes write a "fixed up" sector 13.8 s after
-  the forced read-only; with the series, none (3 of 3 per lane).
-- The patch 1 trigger (fail_function on the repair's csum lookup): the
-  lanes oops; with the series, -EIO, 3 of 3 per lane.
+Tested on KASAN kernels.  A write detector counts every write, discard
+and flush to the member devices from the abort to after unmount; a
+known write inside that window is counted in every valid run.
+- Read after an abort, one mirror corrupt: without the series, -EIO;
+  with it, correct data and no writes (3 of 3).
+- Emergency shutdown: without the series the bad copy is rewritten (16
+  writes); with it, none.
+- Scrub after an abort: without the series a "fixed up" sector is
+  written 13.8 s after the forced read-only; with it, none (3 of 3).
+- The patch 1 trigger (fail_function on the repair's csum lookup):
+  without the series, an oops; with it, -EIO, 3 of 3.
 - Ordinary read repair and raid6/raid1c3 corrupt recovery still return
   correct data.
 
index ce704080d8ca394fcae6ad4d05e1726634048714..ebacf770aa58087d0c3bc4f307caffec897ee123 100644 (file)
@@ -24,13 +24,13 @@ the decompressor has already overwritten a block that may be uptodate in
 the page cache.  The delalloc bits are now cleared and the block's
 uptodate state dropped.
 
-Testing (a KASAN + lockdep 6.18 kernel with large folios, details in TESTING.md
-next to these patches): a clone/dedupe x plain/zlib test that checks the
-destination and the rest of its folio, on disk and in the page cache,
-fails every round on the unfixed kernel (16 of 16) and passes every round
-with patch 1 (32 of 32).  Patch 2 has no runtime reproducer (it needs a
-corrupt compressed inline extent); it was reviewed, and the clone/dedupe
-regression tests run clean with both patches.
+Testing (a KASAN + lockdep kernel with large folios): a clone/dedupe x
+plain/zlib test that checks the destination and the rest of its folio,
+on disk and in the page cache, fails every round on the unfixed kernel
+(16 of 16) and passes every round with patch 1 (32 of 32).  Patch 2 has
+no runtime reproducer (it needs a corrupt compressed inline extent); it
+was reviewed, and the clone/dedupe regression tests run clean with both
+patches.
 
 Patch 1 Fixes: 3115deb381e9, patch 2 Fixes: 05a5a7621ce6.
 
index fd106b7c6b3d9319be28dd41b7bfb28d34758d9c..0a48a4614f8c83dc3bbc61dd9fdd4066f1ce0842 100644 (file)
@@ -11,12 +11,10 @@ after the filesystem has had an error.  This series restores the
 counters, fixes those three failures and what a failed replace leaves
 behind, and adds an option to abort a replace on uncorrectable data.
 
-On misc-next the topic also carries, at its head and ahead of the
-patches numbered here, Josef Bacik's "btrfs: don't trim the target of a
-device replace" (5/5 of "btrfs: data integrity fixes" v2, 2026-11-03,
-Reviewed-by: Qu Wenruo, Reviewed-by: Filipe Manana), as posted, until
-upstream takes it: FITRIM during a replace discarded everything already
-copied to the target.  v2 changed only its commit message and tags.
+Josef Bacik's "btrfs: don't trim the target of a device replace" (5/5 of
+"btrfs: data integrity fixes" v2, 2026-11-03), posted separately, fixes
+another replace data loss: FITRIM during a replace discarded everything
+already copied to the target.
 
 Patch 1 commits the CANCELED state when a replace fails or is canceled.
 btrfs_dev_replace_finishing() updated the item but did not commit, so
@@ -44,13 +42,13 @@ incremented it since the move to scrub_stripe.  Fixes: e02ee89baa66c.
 Patch 6 fixes a data loss.  When the copy of a chunk stops part way,
 scrub_enumerate_chunks() still moves cursor_left to the end of the
 chunk; if the replace is being suspended by an unmount and a transaction
-is still running then (e.g. the cleaner dropping a subvolume), the
-final commit writes that cursor, and the resumed replace never copies
-the rest of the chunk.  The replace finishes without an error.  On a
+is still running then (e.g. the cleaner dropping a subvolume), the final
+commit writes that cursor, and the resumed replace never copies the rest
+of the chunk.  The replace finishes without an error.  On a
 single-profile filesystem with 1 GiB data chunks, 530 MiB of file data
 read back as -EIO after the source was removed; on raid1, scrub found
-the same blocks with csum errors on the new device.  Reproduced on
-misc-next and on stock 6.12.  Since v6.11 an idle unmount commits
+the same blocks with csum errors on the new device.  Reproduced without
+the patch and on stock 6.12.  Since v6.11 an idle unmount commits
 nothing there and hides it; before that, every unmount during a replace
 was exposed.  Fixes: 1a1a8b732c7e9.
 
@@ -89,13 +87,12 @@ group (patch 6) and resumes at the next writable mount.
 Testing: raid1, raid5 and raid6 replaces with planted uncorrectable
 sectors, with and without the flag and -r, across unmount/suspend,
 crash-image resume and target write errors; target contents checked
-sector by sector against a device-identifying prefill; KASAN, misc-next
-and 6.18.  Patches 6, 9 and 10: an unmount mid-chunk with a subvolume
-drop running (single, raid1, and a single device filesystem), with
-idle-unmount and no-unmount controls, and a scrub and a replace after a
-forced abort (unfixed: the scrub went through 5 more block groups,
-1235 MiB in 76 s, and reported success; fixed: -EROFS within a second),
-on both lanes.
+sector by sector against a device-identifying prefill; KASAN.  Patches
+6, 9 and 10: an unmount mid-chunk with a subvolume drop running (single,
+raid1, and a single device filesystem), with idle-unmount and no-unmount
+controls, and a scrub and a replace after a forced abort (unfixed: the
+scrub went through 5 more block groups, 1235 MiB in 76 s, and reported
+success; fixed: -EROFS within a second).
 
 Zygo Blaxell (10):
   btrfs: commit the canceled state when a device replace fails or is
index 85feea5759dc0ef27811064b5c798d128c36b1e4..2dc6fd2cd8c0876cc598c554d1f87df2cb3ac57a 100644 (file)
@@ -26,14 +26,13 @@ with no bdev as missing, whether or not BTRFS_DEV_STATE_MISSING is set,
 because a device can go missing at runtime while its bdev pointer is still
 set, and a rescan can clear the MISSING bit while no bdev is open.
 
-Tested with resize-missing-test.sh on raid1 and raid10, misc-next and
-6.18, with the device lost before mount and, on misc-next, at runtime
-(a null_blk member powered off under the mounted filesystem).  The grow
-attempts fail with -EINVAL, shrinking relocates everything above the new
-size, and replacing with a target of exactly the shrunk size succeeds;
-scrub, checksums and btrfs check are clean afterwards.  Without the patch,
-every resize of the missing device fails with -EPERM and the replace is
-refused.
+Tested with resize-missing-test.sh on raid1 and raid10, with the device
+lost before mount and at runtime (a null_blk member powered off under
+the mounted filesystem).  The grow attempts fail with -EINVAL, shrinking
+relocates everything above the new size, and replacing with a target of
+exactly the shrunk size succeeds; scrub, checksums and btrfs check are
+clean afterwards.  Without the patch, every resize of the missing device
+fails with -EPERM and the replace is refused.
 
 Qu Wenruo (1):
   btrfs: resize: allow shrinking a missing device
index fee2eeff2f6fc9e7d3267e770aaed53cd16e5ed7..5b40a3f2e85da6d1aade76021beb6884d07fc72c 100644 (file)
@@ -26,35 +26,12 @@ its later parts are titled "<subject> (<subtopic> part)" and sit in the
 subtopic they belong to.  The series applies on top of reclaim-fixes
 ("btrfs: block group reclaim fixes for a full filesystem", 3 patches).
 
-On misc-next the topic also carries, at its head and ahead of the 85
-patches numbered here, three of Josef Bacik's "btrfs: data integrity
-fixes" v2 (2026-11-03), as posted, until upstream takes them: 2/5
-"btrfs: clear dirty blocks after a delalloc failure" (Reviewed-by: Qu
-Wenruo, Reviewed-by: Filipe Manana), 3/5 "btrfs: wait for ordered extent
-IO in fast fsync" and 4/5 "btrfs: don't report success for a skipped log
-sync" (Reviewed-by: Filipe Manana).  They fix the fsync and writeback
-error paths that a stripe_alloc ENOSPC drop at the fill edge goes
-through.  3/5 is reworked in v2 and answers the race report on v1 (a
-Sashiko "Critical" finding that Qu forwarded on 2026-10-31: every caller
-cleared folio writeback before BTRFS_INODE_COW_WRITE_ERROR was set, so a
-fast fsync in between could still log the unwritten extent).  v2 drops
-the flag: a fast fsync waits for BTRFS_ORDERED_IO_DONE on the ordered
-extents it collected, which can_finish_ordered_extent() sets only after
-recording BTRFS_ORDERED_IOERR.  In 4/5, v2 turns v1's ASSERT(0, ...)
-into DEBUG_WARN(...).  2/5 changed only its commit message and tags.
-
-On both lanes the topic also ends, after the 85 patches numbered here,
-with "btrfs: stripe_alloc: drop the extract hooks of the stripe_alloc
-properties" (2026-11-04).  The stripe_alloc and stripe_alloc_allow_rmw
-handlers are not inheritable, and btrfs_inode_inherit_props(), the only
-caller of a handler's extract hook, skips those before calling it, so
-both hooks were dead code returning NULL.  Dropping them keeps the
-handlers independent of the extract() prototype, which koraynilay's
-per-inode compression level series changes.  The patch also moves
-prop_compression_extract() back next to prop_compression_ignore(), so
-the stripe_alloc functions no longer sit between the compression
-hooks.  No functional change.  At the next export it folds into patches
-4 and 40, which add the two handlers.
+Three of Josef Bacik's "btrfs: data integrity fixes" v2 (2026-11-03),
+posted separately, fix the fsync and writeback error paths that a
+stripe_alloc ENOSPC drop at the fill edge goes through: 2/5 "btrfs:
+clear dirty blocks after a delalloc failure", 3/5 "btrfs: wait for
+ordered extent IO in fast fsync" and 4/5 "btrfs: don't report success
+for a skipped log sync".
 
 The write hole
 ==============
@@ -174,9 +151,9 @@ found:
     - Verification of reconstructed tree blocks, and raid56 repair
       fixes (rebuild from Q, device error stats, write-back of the
       sectors an RMW repaired).
-  raid56-scrub-replace (on top of read-repair-fixes): the harness
-    scrubs deliberately damaged filesystems, so its results depend on
-    scrub not giving up at the first uncorrectable raid56 sector.
+  raid56-scrub-replace (on top of read-repair-fixes): the tests scrub
+    deliberately damaged filesystems, so their results depend on scrub
+    not giving up at the first uncorrectable raid56 sector.
   deadlock-fixes: three lock-ordering deadlocks found on the soak rig.
     None involves raid56.
   delalloc-fixes: "drain pending NOCOW writes before making a block
@@ -436,8 +413,7 @@ carry-forward in the same rep (patch 57):
 - 16 and 64 writers, and one fsync per inode: 1.2-2.9x the fsyncs/s
   (one 64-writer rep of eight: 0.8x), 3-8x fewer device bytes per fsync,
   and less slab.  A later run gave 1.3-3x the fsyncs/s at 4-64 writers,
-  with p99.9 latency at 0.1-0.7x (bench #280,
-  forensics/fsync-mode-bench-20261004).
+  with p99.9 latency at 0.1-0.7x.
 - One writer: parity on latency, 17-29% fewer device bytes.
 - The workload that can lose: two large streaming writers beside small
   fsync writers, 0.5-1.9x the fsyncs/s.  A small fsync waits for
@@ -466,7 +442,7 @@ Subtopic 6a: debugging code, not for merging
 
 Patches 58-67.
 
-Carried for the test harness:
+Carried for testing:
 
 - The write-hole invariant checker in the raid56 write path
   (CONFIG_BTRFS_DEBUG), held off during a runtime enable until the
@@ -685,10 +661,9 @@ Crash plus up to P missing devices (one for raid5, two for raid6):
   window is then absent, which is detectable.  Degraded log replay is
   driven by the tests as a probe.  In the crash campaigns, under a
   flush-consistent crash model, it recovered what the all-present replay
-  recovered.  Under the harness's harsher per-member crash model (each
-  member cut at an independent point, which honest devices cannot
-  produce) it can return torn state, which is why it is a probe and not
-  the recovery.
+  recovered.  Under a harsher per-member crash model (each member cut
+  at an independent point, which honest devices cannot produce) it can
+  return torn state, which is why it is a probe and not the recovery.
 - Any loss reads as EIO, never as wrong data or zeros (with the split
   bio fix from raid56-fixes).
 
@@ -738,21 +713,17 @@ damaged columns, stock 370, the series 0 (corrupt-churn).
 Testing
 =======
 
-TESTING.md (in the export directory) lists every test with its last
-result, kernel, harness commit and evidence; its rows use the patch
-numbers of the 116-patch export of 2026-10-25, and a table there maps
-them to these.  The summary below is from it.  Unless stated otherwise
-the kernel is 7.3.0-rc7+ #5 (2026-10-18; KASAN, lockdep and BTRFS_DEBUG
-on), the misc-next lane's integration of all topics at the time, which
-includes the prerequisite series above.
-
-The series has been rearranged since, without changing what it does:
-the fixes appended over two review rounds were folded into the patches
-they fix, the generic reclaim parts moved to reclaim-fixes, and the
-patches were reordered by subtopic (125 patches became 4 + 86).  The
-final tree of that rework equals the tree it started from except for one
-removed dead function.  Every patch of the new order builds (fs/btrfs,
-no new warnings, CONFIG_BTRFS_DEBUG on) and the tip links.  A review on
+Unless stated otherwise the kernel is 7.3.0-rc7+ (2026-10-18; KASAN,
+lockdep and BTRFS_DEBUG on) with this series, the prerequisite series
+above and our other pending btrfs series applied.
+
+The series has been rearranged since, without changing what it does: the
+fixes appended over two review rounds were folded into the patches they
+fix, the generic reclaim parts moved to reclaim-fixes, and the patches
+were reordered by subtopic (125 patches became 4 + 86).  The final tree
+of that rework equals the tree it started from except for one removed
+dead function.  Every patch of the new order builds (fs/btrfs, no new
+warnings, CONFIG_BTRFS_DEBUG on) and the tip links.  A review on
 2026-10-29/30 then made the RMW audit (63) non-blocking, moved two sysfs
 counter lines into the patches that add their counters (which emptied
 and removed the last patch, so 4 + 86 became 3 + 85, the fourth reclaim
@@ -760,12 +731,11 @@ patch being a test-only change that is not posted), and moved a
 static_assert in 63 under CONFIG_BTRFS_DEBUG: with BTRFS_DEBUG off,
 raid56.c did not build from 63 on.  The topic tip and every changed
 patch build with BTRFS_DEBUG off and on (W=1, no warnings).  The
-regression subset was rerun on the reworked lane (2026-10-28, lockdep,
-with a KASAN run on the 6.18 lane), and again after the lane moved to
-the current base with Qu's raid56 patches (2026-10-28/29, KASAN +
-lockdep): all PASS, with one test (retire-wait-abort) skipping
-as on every baseline because the filesystem never reached the error
-state.
+regression subset was rerun on the reworked series (2026-10-28,
+lockdep), and again after the rebase onto the current base with Qu's
+raid56 patches (2026-10-28/29, KASAN + lockdep): all PASS, with one test
+(retire-wait-abort) skipping as on every baseline because the filesystem
+never reached the error state.
 
 Write hole and damage to committed data:
 
@@ -812,18 +782,19 @@ fixes reverted and a sixth removed fails the test that guards each of
 them, except that the admission fix for single-data-stripe groups (in
 34) is not shown separately from the rest of 34.
 
-Acceptance suite: 13 tests under a fault present for the whole run,
-on a 6-device raid5.  In the dead-disk role it passed 13/13 on one host.
-On the other host it passed 13/13 in one loop of three, and the other
-two loops ran the filesystem out of space during the suite's
-time-bounded fsstress (ENOSPC from the test geometry, every acknowledged
-write verified, btrfs check clean).  The harness now restores headroom
-after that test; the confirmation runs are pending.
+Acceptance suite: 13 tests under a fault present for the whole run, on a
+6-device raid5.  In the dead-disk role it passed 13/13 on one host.  On
+the other host it passed 13/13 in one loop of three, and the other two
+loops ran the filesystem out of space during the suite's time-bounded
+fsstress (ENOSPC from the test geometry, every acknowledged write
+verified, btrfs check clean).  The suite now restores headroom after
+that test; the confirmation runs are pending.
 
 Not rerun on this kernel: the silent-corruption role of the acceptance
-suite, the 12-hour deadlock soak (last PASS on the 6.18 lane,
-2026-09-08), and the raid56-metadata fsync-window characterization
-(162 armed cases, no committed damage; it predates patch 77).
+suite, the 12-hour deadlock soak (last PASS 2026-09-08, on an earlier
+version of the series), and the raid56-metadata fsync-window
+characterization (162 armed cases, no committed damage; it predates
+patch 77).
 
 Not covered by a test of their own: the allocation-failure paths of 3
 and 16 (need fault injection), the NOWAIT extent tree search of 43, and
@@ -853,8 +824,8 @@ allocator's latency since it became the default.
 Claim cost: an aged 85 TiB raid5 with legacy-packed groups spun its
 delalloc workers at 100% CPU, rescanning a whole group for a run that
 did not exist on every 4K allocation.  Patch 16 remembers the failed
-scan.  [6.18 A/B of 2026-08-16, not in the forensics: average claim
-1447 us -> 0.8 us, fsync write storm 48 -> 218 files/s.]
+scan.  [A/B of 2026-08-16 on a 6.18-based kernel: average claim 1447 us
+-> 0.8 us, fsync write storm 48 -> 218 files/s.]
 
 On filesystems that are not raid56, or without the property, the
 series' hooks are early returns.