Commit 1e4cf0d3 authored by Jens Axboe's avatar Jens Axboe

Revert "signal: don't allow STOP on PF_IO_WORKER threads"

This reverts commit 4db4b1a0.

The IO threads allow and handle SIGSTOP now, so don't special case them
anymore in task_set_jobctl_pending().
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent d3dc04cd
...@@ -288,8 +288,7 @@ bool task_set_jobctl_pending(struct task_struct *task, unsigned long mask) ...@@ -288,8 +288,7 @@ bool task_set_jobctl_pending(struct task_struct *task, unsigned long mask)
JOBCTL_STOP_SIGMASK | JOBCTL_TRAPPING)); JOBCTL_STOP_SIGMASK | JOBCTL_TRAPPING));
BUG_ON((mask & JOBCTL_TRAPPING) && !(mask & JOBCTL_PENDING_MASK)); BUG_ON((mask & JOBCTL_TRAPPING) && !(mask & JOBCTL_PENDING_MASK));
if (unlikely(fatal_signal_pending(task) || if (unlikely(fatal_signal_pending(task) || (task->flags & PF_EXITING)))
(task->flags & (PF_EXITING | PF_IO_WORKER))))
return false; return false;
if (mask & JOBCTL_STOP_SIGMASK) if (mask & JOBCTL_STOP_SIGMASK)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment