Re: [6.2][regression] after commit 947a629988f191807d2d22ba63ae18259bb645c5 btrfs volume periodical forced switch to readonly after a lot of disk writes

From: Mikhail Gavrilov
Date: Mon Dec 26 2022 - 07:18:57 EST


On Mon, Dec 26, 2022 at 5:11 PM Qu Wenruo <quwenruo.btrfs@xxxxxxx> wrote:
>
>
> While at the caller, the structure is properly passed in.
>
> So there is something wrong between the endio function and the check.
>
> I have created the v2 version patch to debug, please apply without any
> previous debug patch.
>
> Meanwhile this really looks like a race, thus I'm not 100% sure if my
> debug patch would reduce the possibility to reproduce.
>
> Your bisect should be the determining evidence, for the worst case we
> can revert the offending patch.
>
> Thank you very much for all of the testing, it really helps a lot.
> Qu
>

Looks like v2 version patch is missed in last message

--
Best Regards,
Mike Gavrilov.