From e6affe90e3db364375868a7e41712c58eb7adf09 Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:23 +0100 Subject: [PATCH] Revert "kthread: fix task state in kthread worker if being frozen" This reverts commit b1ce87a881ee31afdc110ce702b8a17b7f3b0d44. --- kernel/kthread.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/kernel/kthread.c b/kernel/kthread.c index 3da2fbb86..ba8502ee9 100755 --- a/kernel/kthread.c +++ b/kernel/kthread.c @@ -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();