On 2022/12/26 20:15, Mikhail Gavrilov wrote: > On Mon, Dec 26, 2022 at 5:11 PM Qu Wenruo 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 > Oh, my bad. Please be aware that, this newer version may cause extra kernel warnings, if it found any uninitialized btrfs_tree_parent_check structure at submit time. But there are completely valid cases we can do that, thus it may cause much larger dmesg output, and you should not rely on the kernel warning to determine if the bug is triggered. Thanks, Qu