- 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