]> git.hungrycats.org Git - linux/commitdiff
deadlock-fixes TESTING.md: -EUCLEAN for leaked delalloc in the clone lock loop (candi...
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Tue, 27 Oct 2026 01:02:06 +0000 (21:02 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Tue, 27 Oct 2026 01:02:06 +0000 (21:02 -0400)
Zygo chose -EUCLEAN with a warning over -EAGAIN for delalloc that survives
the flush-and-retry rounds of patch 2.  The candidate folds it into patch 2;
the patch files stay the lane's until promotion.

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

index 001650850f3b47f69a037a203170d176a786d0dc..93e5de1000d0752d8242b9f7ed54dff08160a86a 100644 (file)
@@ -168,11 +168,17 @@ Full regression set and fstests: see `topics/reflink-inline-fixes/TESTING.md`
 - Patch 2 has no directed reproducer: neither the mixed-layout source
   case nor the pre-existing (asynchronous compression) delalloc case.
 
-- The -EAGAIN that the clone path returns after three flush-and-retry
+- The -EAGAIN that the clone path returned after three flush-and-retry
   rounds (patch 2) is not spurious: delalloc that survives
   btrfs_wait_ordered_range() under both i_rwsem and the exclusive
   i_mmap_lock is a stuck bit, and proceeding would reopen the deadlock.
-  Whether userspace should see -EAGAIN there is Zygo's call; not changed.
+  Zygo 2026-10-26: report it and fail with -EUCLEAN, since -EAGAIN would
+  have a dedupe agent retry the range forever.  Candidate (folded into
+  patch 2, not promoted): btrfs_warn_rl() naming root, inode and range,
+  WARN_ON_ONCE(), return -EUCLEAN, at both lock loops;
+  refs/cand/reflink/mn/deadlock-fixes 5f68685eacfa (patch 2 = f4a368cd3d65),
+  6.18 ab56f8dc2553 (9bc3ed94b2f0).  The patch files here are still the
+  lane's (-EAGAIN) until the candidate is promoted and re-exported.
 
 ### Questions for Zygo