Re: [PATCH 05/10] perf/uprobe: SRCU-ify uprobe->consumer list
From: Oleg Nesterov
Date: Tue Jul 09 2024 - 11:36:40 EST
On 07/09, Peter Zijlstra wrote:
>
> Hmm, easiest would be to add a seqcount to register_mutex and simply
> skip the remove case when odd.
probably yes,
> Then the handler might get a few extra (unwanted) calls, but it should
> be able to handle them, they're fundamentally not different from the
> first one where it says REMOVE. Right?
plus the handler can never assume that UPROBE_HANDLER_REMOVE won't be
ignored, another consumer can want to trace this task.
Oleg.