Revert "signal: don't allow sending any signals to PF_IO_WORKER threads"
authorJens Axboe <axboe@kernel.dk>
Fri, 26 Mar 2021 00:18:15 +0000 (18:18 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 27 Mar 2021 20:09:10 +0000 (14:09 -0600)
This reverts commit 5be28c8f85ce99ed2d329d2ad8bdd18ea19473a5.

IO threads now take signals just fine, so there's no reason to limit them
specifically. Revert the change that prevented that from happening.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
kernel/signal.c

index d22177d37b216eb2baeb54343d27be8b5fc4c185..9e172b9341f45f3afc5eeb67a7cc9bb81cef49af 100644 (file)
@@ -834,9 +834,6 @@ static int check_kill_permission(int sig, struct kernel_siginfo *info,
 
        if (!valid_signal(sig))
                return -EINVAL;
-       /* PF_IO_WORKER threads don't take any signals */
-       if (t->flags & PF_IO_WORKER)
-               return -ESRCH;
 
        if (!si_fromuser(info))
                return 0;