Skip to content

Commit

Permalink
Revert "kernel: freezer should treat PF_IO_WORKER like PF_KTHREAD for…
Browse files Browse the repository at this point in the history
… freezing"

commit d3dc04c upstream.

This reverts commit 15b2219.

Before IO threads accepted signals, the freezer using take signals to wake
up an IO thread would cause them to loop without any way to clear the
pending signal. That is no longer the case, so stop special casing
PF_IO_WORKER in the freezer.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
axboe authored and gregkh committed Apr 7, 2021
1 parent d1f9651 commit a73c62a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/freezer.c
Expand Up @@ -134,7 +134,7 @@ bool freeze_task(struct task_struct *p)
return false;
}

if (!(p->flags & (PF_KTHREAD | PF_IO_WORKER)))
if (!(p->flags & PF_KTHREAD))
fake_signal_wake_up(p);
else
wake_up_state(p, TASK_INTERRUPTIBLE);
Expand Down

0 comments on commit a73c62a

Please sign in to comment.