Revert "kthread: fix task state in kthread worker if being frozen"
This reverts commit b1ce87a881
.
This commit is contained in:
parent
a83bba270c
commit
e6affe90e3
1 changed files with 1 additions and 9 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue