Skip to content

Commit

Permalink
Revert "signal: don't allow STOP on PF_IO_WORKER threads"
Browse files Browse the repository at this point in the history
This reverts commit 4db4b1a.

The IO threads allow and handle SIGSTOP now, so don't special case them
anymore in task_set_jobctl_pending().

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Mar 27, 2021
1 parent d3dc04c commit 1e4cf0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,7 @@ bool task_set_jobctl_pending(struct task_struct *task, unsigned long mask)
JOBCTL_STOP_SIGMASK | JOBCTL_TRAPPING));
BUG_ON((mask & JOBCTL_TRAPPING) && !(mask & JOBCTL_PENDING_MASK));

if (unlikely(fatal_signal_pending(task) ||
(task->flags & (PF_EXITING | PF_IO_WORKER))))
if (unlikely(fatal_signal_pending(task) || (task->flags & PF_EXITING)))
return false;

if (mask & JOBCTL_STOP_SIGMASK)
Expand Down

0 comments on commit 1e4cf0d

Please sign in to comment.