[LTP] [PATCH v1] fzsync: break inf loop with flag vs pthread_cancel

Li Wang liwang@redhat.com
Mon Apr 11 11:35:43 CEST 2022


On Mon, Apr 11, 2022 at 5:27 PM Richard Palethorpe <rpalethorpe@suse.de>
wrote:


> > Exactly, maybe do something to make tst_fzsync_pair_cleanup
> > avoid joining to itself when the invoke come from B?
>
> I suppose we could save thread A or B's TID and then check it. I think
> that should be in a seperate patch.
>

Agreed, feel free to send a patch, Richard.

>  > +                       tst_atomic_store(1, &pair->exit);
> >  > +                       usleep(100000);
> >
> >  Why do we need usleep?
> >
> > Seems not very needed.
>
> +1
>

@Edward,  It'd be appreciated if you can send a patch V2 base on
the comments above. Or, do you have different thoughts?

-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20220411/7549655f/attachment.htm>


More information about the ltp mailing list