]> git.hungrycats.org Git - linux/commitdiff
replace-finish-deadlock: cover: patch 2 says it affects every profile first (Zygo...
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Wed, 11 Nov 2026 05:15:05 +0000 (00:15 -0500)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Wed, 11 Nov 2026 06:40:36 +0000 (01:40 -0500)
The patch 2 paragraph now opens with the profile-independence and drops
the trailing sentence.  The patch 2 changelog gets the same reword on the
lanes (pc1111); the exported patch follows with the next re-export.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
topics/replace-finish-deadlock/0000-cover-letter.patch

index ed1f6da58ed285f6ed81c1f2dbbc186df1f62a7b..2adf4582c2f5ad05f066132463e5768462984352 100644 (file)
@@ -24,13 +24,13 @@ is repaired by a rebuild and written back to the replace target.  The
 patch moves the parts of read repair that take the bio counter to a new
 workqueue that no bio completion waits for.
 
-Patch 2: btrfs_submit_chunk() holds the bio counter across the data
-checksum lookup of a read.  When the checksum leaf is not cached, its
-read takes the counter again, and if replace finishing has set the flag
-in between, the reader sleeps with its first reference held.  The patch
-drops the counter and the mapping for the lookup and maps the bio again
-afterwards, to the same mirror.  This one does not depend on the RAID
-profile.
+Patch 2 fixes a deadlock that does not depend on the RAID profile:
+btrfs_submit_chunk() holds the bio counter across the data checksum
+lookup of a read.  When the checksum leaf is not cached, its read takes
+the counter again, and if replace finishing has set the flag in between,
+the reader sleeps with its first reference held.  The patch drops the
+counter and the mapping for the lookup and maps the bio again
+afterwards, to the same mirror.
 
 Tested on KASAN and non-KASAN kernels with a stress test that replaces
 the missing device of a degraded 4-device array while 8 O_DIRECT readers