Re: WARNING in hrtimer_forward

From: Thomas Gleixner
Date: Mon Sep 28 2020 - 10:18:09 EST


On Sun, Sep 27 2020 at 16:04, Hillf Danton wrote:
> Sat, 26 Sep 2020 17:38:16 -0700
>
> Dunno if it's down to memory barrier.
>
> --- a/kernel/time/hrtimer.c
> +++ b/kernel/time/hrtimer.c
> @@ -929,7 +929,7 @@ u64 hrtimer_forward(struct hrtimer *time
> if (delta < 0)
> return 0;
>
> - if (WARN_ON(timer->state & HRTIMER_STATE_ENQUEUED))
> + if (WARN_ON(hrtimer_is_queued(timer)))
> return 0;

The point of that exercise is?