Re: Lock problems in linux/tools/perf/util/dso.c

From: Namhyung Kim
Date: Tue Jan 04 2022 - 14:33:54 EST


On Wed, Dec 29, 2021 at 6:42 PM Ryan Cai <ycaibb@xxxxxxxxx> wrote:
>
> Hi, Namhyung,
>
> 1. Indeed, I got wrong here.
> 2. Yes, the branch should be if (pthread_mutex_lock(&dso__data_open_lock))
> instead of if (pthread_mutex_lock(&dso__data_open_lock) < 0).
>
> Could I send a patch?

Sure!

Thanks,
Namhyung