Re: [PATCH 2/3] tracing/kselftests: Remove triggers with references before their definitions

From: Steven Rostedt
Date: Wed Oct 27 2021 - 19:55:02 EST


On Wed, 27 Oct 2021 16:26:00 -0700
Kalesh Singh <kaleshsingh@xxxxxxxxxx> wrote:

> > Why don't you use 'tac'? I love that idea :)
> > Did you find any issue?
>
> Hi Masami,
>
> Thanks for the reviews. As with the first set of patches using tac
> gives a regression here, though I'm not sure why it doesn't work -- I
> also thought reversing the order would handle any dependencies
> correctly.

Right, because are triggers not added by list_add_rcu() which adds to
the head of the list. If anything, shouldn't things be removed in order?

-- Steve