Re: 6.4 and 6.9 btrfs blocked and btrfs_work_helper workqueue lockup, is it an IO bug/hang though?

Qu Wenruo
2024-02-29T02:01:25Z

在 2024/2/29 12:11, Marc MERLIN 写道:
> On Wed, Feb 28, 2024 at 06:54:48PM +1030, Qu Wenruo wrote:
>> It looks like there are something wrong with the aacraid driver, without
>> several hanging IOs.
>>
>> That may be the cause.
>
> This was what I thought, but was hoping for a confirmation, so thanks
> for looking it over, and I guess aacraid hangs turn into btrfs hangs,
> making it look like it's at fault, but really it's not.

Not an expert on the block drivers, but a lot of btrfs works relies on
the endio function (either a successful end, or an error) to unlock
various structures.

If the driver didn't properly end the bio when something went wrong, it
would definitely cause a hang.

Another question is, are both kernels running on the same machine?

In that case, is the same aacraid driver used on v6.9? As the newer
kernel shows hangs on mdraid too, which is now shown in the older kernel.

Thanks,
Qu

>
> Thanks,
> Marc