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"

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 <[email protected]>
  • Loading branch information
axboe committed Mar 27, 2021
1 parent e8b33b8 commit d3dc04c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/freezer.c
Original file line number Diff line number Diff line change
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 d3dc04c

Please sign in to comment.