Re: [PATCH v5a 5/5] treewide: Convert del_timer*() to timer_shutdown*()

From: Linus Torvalds
Date: Sun Nov 06 2022 - 17:40:41 EST


On Sun, Nov 6, 2022 at 1:52 PM Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
>
> I can update the change log to include:

Yup, full running instructions for coccinelle patches is probably a good idea.

I've done them semi-occasionally, but it's rare enough that I always
have to look it up anyway, and I suspect many others have never done
it, so having it in the commit message is probably a good idea.

> when != ptr->timer.function = E;

I do think that you should just remove that E expression and the
"function = E" part.

Really, _any_ use of the timer after the timer delete makes it questionable,

It doesn't change the patch in my testing, but I think it's silly to
have that very specific pattern, when the more general case of "hey,
if you use the timer after deleting it, it's not obvious that it
should be a shutdown any more" just is more sensible anyway.

Linus