Re:Re: [PATCH] hrtimer.c : Remove redundant thread state settings

From: lizhe
Date: Fri Jan 12 2024 - 00:04:08 EST




Hi, 
    Please review this patch, It does not check the condition when executing the scheduler() function.
       
                                                                                                       Lizhe
                                                                                           thanks





At 2024-01-12 00:44:20, "Thomas Gleixner" <tglx@xxxxxxxxxxxxx> wrote: >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

Attachment: 0001-drivers-dm-crypt.c-remove-redundant-state-settings-a.patch
Description: Binary data