Running generic/166 sometimes writes into a full zone.
Jun 30 15:17:10 kernel: nvme1n2: Write(0x1) @ LBA 4855543, 320 blocks, Zone Is Full (sct 0x1 / sc 0xb9) MORE DNR
Jun 30 15:17:10 kernel: I/O error, dev nvme1n2, sector 38844344 op 0x1:(WRITE) flags 0x5800 phys_seg 26 prio class 0
Jun 30 15:17:11 kernel: nvme1n2: Write(0x1) @ LBA 4855863, 320 blocks, Zone Is Full (sct 0x1 / sc 0xb9) MORE DNR
Jun 30 15:17:11 kernel: I/O error, dev nvme1n2, sector 38846904 op 0x1:(WRITE) flags 0x5800 phys_seg 13 prio class 0
Jun 30 15:17:11 kernel: nvme1n2: Write(0x1) @ LBA 4856183, 320 blocks, Zone Is Full (sct 0x1 / sc 0xb9) MORE DNR
Jun 30 15:17:11 kernel: I/O error, dev nvme1n2, sector 38849464 op 0x1:(WRITE) flags 0x5800 phys_seg 9 prio class 0
Jun 30 15:17:11 kernel: nvme1n2: Write(0x1) @ LBA 4856503, 320 blocks, Zone Is Full (sct 0x1 / sc 0xb9) MORE DNR
Jun 30 15:17:11 kernel: I/O error, dev nvme1n2, sector 38852024 op 0x1:(WRITE) flags 0x5800 phys_seg 6 prio class 0
Jun 30 15:17:11 kernel: nvme1n2: Write(0x1) @ LBA 4856823, 320 blocks, Zone Is Full (sct 0x1 / sc 0xb9) MORE DNR
Jun 30 15:17:11 kernel: I/O error, dev nvme1n2, sector 38854584 op 0x1:(WRITE) flags 0x5800 phys_seg 6 prio class 0
Jun 30 15:17:11 kernel: nvme1n2: Write(0x1) @ LBA 4857143, 320 blocks, Zone Is Full (sct 0x1 / sc 0xb9) MORE DNR
Jun 30 15:17:11 kernel: I/O error, dev nvme1n2, sector 38857144 op 0x1:(WRITE) flags 0x5800 phys_seg 7 prio class 0
Jun 30 15:17:11 kernel: nvme1n2: Write(0x1) @ LBA 4857463, 320 blocks, Zone Is Full (sct 0x1 / sc 0xb9) MORE DNR
Jun 30 15:17:11 kernel: I/O error, dev nvme1n2, sector 38859704 op 0x1:(WRITE) flags 0x5800 phys_seg 3 prio class 0
Jun 30 15:17:11 kernel: nvme1n2: Write(0x1) @ LBA 4857783, 320 blocks, Zone Is Full (sct 0x1 / sc 0xb9) MORE DNR
Jun 30 15:17:11 kernel: I/O error, dev nvme1n2, sector 38862264 op 0x1:(WRITE) flags 0x5800 phys_seg 2 prio class 0
Jun 30 15:17:11 kernel: nvme1n2: Write(0x1) @ LBA 4858103, 320 blocks, Zone Is Full (sct 0x1 / sc 0xb9) MORE DNR
Jun 30 15:17:11 kernel: I/O error, dev nvme1n2, sector 38864824 op 0x1:(WRITE) flags 0x5800 phys_seg 3 prio class 0
Jun 30 15:17:11 kernel: nvme1n2: Write(0x1) @ LBA 4858423, 320 blocks, Zone Is Full (sct 0x1 / sc 0xb9) MORE DNR
Jun 30 15:17:11 kernel: I/O error, dev nvme1n2, sector 38867384 op 0x1:(WRITE) flags 0x5800 phys_seg 2 prio class 0
Jun 30 15:17:11 kernel: BTRFS error (device nvme1n2): bdev /dev/nvme1n2 errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
Jun 30 15:17:11 kernel: BTRFS: error (device nvme1n2) in btrfs_commit_transaction:2422: errno=-5 IO failure (Error while writing out transaction)
Jun 30 15:17:11 kernel: BTRFS info (device nvme1n2: state E): forced readonly
Jun 30 15:17:11 kernel: BTRFS warning (device nvme1n2: state E): Skipping commit of aborted transaction.
Jun 30 15:17:11 kernel: BTRFS: error (device nvme1n2: state EA) in cleanup_transaction:1969: errno=-5 IO failure
I suspect metadata BG is finished before writings of the extent buffers are completed.
Running generic/166 sometimes writes into a full zone.
I suspect metadata BG is finished before writings of the extent buffers are completed.