[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <877ckfkefv.ffs@tglx>
Date: Thu, 11 Jan 2024 17:44:20 +0100
From: Thomas Gleixner <tglx@...utronix.de>
To: Lizhe <sensor1010@....com>, ilpo.jarvinen@...ux.intel.com
Cc: linux-kernel@...r.kernel.org, Lizhe <sensor1010@....com>
Subject: Re: [PATCH] hrtimer.c : Remove redundant thread state settings
On Wed, Jan 10 2024 at 06:13, Lizhe wrote:
> After a thread is awakened, its state is already task_running
That's correct, but please look at hrtimer_wakeup() and the conditional
schedule() invocation in schedule_hrtimeout_range_clock(). You break the
guarantee that this function returns with task state == TASK_RUNNING.
Thanks,
tglx
Powered by blists - more mailing lists