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