Revert "kthread: fix task state in kthread worker if being frozen"

This reverts commit b1ce87a881.
This commit is contained in:
Ksawlii 2024-11-24 00:23:23 +01:00
parent a83bba270c
commit e6affe90e3

View file

@ -783,16 +783,8 @@ repeat:
* event only cares about the address.
*/
trace_sched_kthread_work_execute_end(work, func);
} else if (!freezing(current)) {
} else if (!freezing(current))
schedule();
} else {
/*
* Handle the case where the current remains
* TASK_INTERRUPTIBLE. try_to_freeze() expects
* the current to be TASK_RUNNING.
*/
__set_current_state(TASK_RUNNING);
}
try_to_freeze();
cond_resched();