Re: [PATCH] btrfs: fix bio counter and bioc leak when async checksumming fails

From: Mani Tofigh

Date: Sun Nov 01 2026 - 20:59:44 EST


On 11/1/26 3:53 PM, Qu Wenruo wrote:
在 2026/11/2 07:08, Qu Wenruo 写道:
So I'm wondering what's your setup? Are you running SHA256 algo for checksum? I can add it to the commit message during merge.


Yep, it's a sha256 filesystem on a non-EXPERIMENTAL build, with
failslab failing the checksum allocation in the worker.

And Sashiko exposed an existing problem, even with this patch applied, the error handling of btrfs_split_bio() is not going to release the bioc.

Good catch, I'll put the bioc there too and send a v2 with the sha256
setup mentioned in the commit message.

Thanks for the review!
Mani