From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69127C433E6 for ; Fri, 26 Mar 2021 15:53:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 448D461A56 for ; Fri, 26 Mar 2021 15:53:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231186AbhCZPwr (ORCPT ); Fri, 26 Mar 2021 11:52:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230173AbhCZPwO (ORCPT ); Fri, 26 Mar 2021 11:52:14 -0400 Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEBC0C0613BA for ; Fri, 26 Mar 2021 08:52:12 -0700 (PDT) Received: by mail-il1-x12e.google.com with SMTP id t14so5413415ilu.3 for ; Fri, 26 Mar 2021 08:52:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+6iLfraAukd5qWxrNJ/xAJfYelrvhrIxjGSLD09SOtQ=; b=H3ITNbkEfXi4nc2sLaibx3OIOpm8AKArOMAQYThU/5VjUpYdQXacQ5xC2mJfMTmGeF fcxezLDTMNBAyf7EAb68NJkOUhfwZZmQ7a30/8YjndEtELfI50bgIy8l8GmF/8dO6PfR NZkhBpbf0HEqZmmZtoygi0iun5A3xPoQdY6Gv98xi+OWEFpTPqsv/TYyK5chxqZzf5dw 5AcYMkE+HTA1nF7tuQ+t/3mP/rh26TRioyP03kvzzN3BB79+SPdTpkSqCa+cz8V4Osg8 tZHNzoXAU8P+VZZCXZI5r82NpbHb9JlFuENYbSvHqr4p+9KKd5/5ptkzf1iMBK5QnD75 KGzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+6iLfraAukd5qWxrNJ/xAJfYelrvhrIxjGSLD09SOtQ=; b=rSS7ybK/+OgZcDX5MG0u7MjbLTEpgYzQSo2nx7gSFZyL93RRr0ieifBjB+DKB5Wam3 aJZ/J6N/BBuy9e/nBpDLtb1SLyPns9GSO+IWVWSV+6aBwSiscIQNVc5ensNNHTjgbzZh roSpIhYwoKmA7jF3oOU9+IJfSWhMqvbpg/J5ojDVmCMcb3BxbtrmH8iNWVQkANy6GpYm xJtAtoX4l5zqJjZjm+aZXePosgEw58xnF+zmfPcaubqNLAGZbkAaPKspR972zE19anbY 1YgA4udbHvqyTk5IB1OxOd5k5mzuhxDgu1gAJnTXIa26vtn2isnyv3RC6dQ/voJVopmk Ftqw== X-Gm-Message-State: AOAM532eVWEd/kYQBEUHXW7LZro/y1Gg6FgXdNA9Dw+DM5fm5ujI2YLK zKgzPvnLt2Aj2Y6njhGiCbctzA6yFccgjA== X-Google-Smtp-Source: ABdhPJywJJ2sTTKe4i/jNzJlMhlnzJ5zi0tqxxZeETZ3m6xQ56t3cRnC6npLnkJ3omZz1PG0L+UyAw== X-Received: by 2002:a05:6e02:c09:: with SMTP id d9mr1678660ile.62.1616773932148; Fri, 26 Mar 2021 08:52:12 -0700 (PDT) Received: from p1.localdomain ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id a7sm4456337ilj.64.2021.03.26.08.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Mar 2021 08:52:11 -0700 (PDT) From: Jens Axboe To: io-uring@vger.kernel.org Cc: torvalds@linux-foundation.org, ebiederm@xmission.com, metze@samba.org, oleg@redhat.com, linux-kernel@vger.kernel.org, Jens Axboe Subject: [PATCH 7/7] Revert "signal: don't allow STOP on PF_IO_WORKER threads" Date: Fri, 26 Mar 2021 09:51:24 -0600 Message-Id: <20210326155128.1057078-12-axboe@kernel.dk> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210326155128.1057078-1-axboe@kernel.dk> References: <20210326155128.1057078-1-axboe@kernel.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org This reverts commit 4db4b1a0d1779dc159f7b87feb97030ec0b12597. 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 --- kernel/signal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/signal.c b/kernel/signal.c index 76d85830d4fa..5b75fbe3d2d6 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -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) -- 2.31.0