Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1450074pxf; Fri, 26 Mar 2021 08:02:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWPCKrRol+GaZSLihFYKSrArU0WkqgfFC+0mgbruIZGwjAO5Myub05eRrSQA2gzEszXLuQ X-Received: by 2002:a17:906:fcc7:: with SMTP id qx7mr16021926ejb.486.1616770956064; Fri, 26 Mar 2021 08:02:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616770956; cv=none; d=google.com; s=arc-20160816; b=V28G0ErGP50AAS76v1qHLes695k0SsQOtzbr+TMuRmF4oG+RMvjMuCgx6/ea0yP+Tp C93tJ2ljh3MLiw989GCMQeGpGa9eICPlp8LZeHVdqmlAnr+O0YKNznN+9JWEby5/0GcH MYVboyYJYDThInP1e3bvajz9GHjaYoZR8HvlcnCh/zeL2RCHxmsSCwB4twHWx8Dqrlbj qRB+bfoWtIcRR1pS7Vcq2nu0yKZK8Bp7Tpaucw9eqqKmsKjDLauPFt/0O6JEesfcuamr vBydUJEimbYmynZ05NXDiOAB67oYI133Kwe7ldM1c2vFlfUxiT77GXLSMAZkO/KWhvvM bmMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=bg/XFgK0j4Bi2nzOGM6CJPuGBSSM2wwPb1IUUNZ4ZrY=; b=k4DbOu1iUbc7PS/5ZNl0QITKllW5quSkWE87E7v6DKUP1+M7ZdA3+/b/Tg/qjGF60g tBY5fgDxYT4Oxqjx7X+5SH/t7Kt3P5ijuOVMoBIzkCr/wTSGXxLba+wmh5uKkd1Wqno1 9ewiHVr+6rHvKR20NjGGURGpFZOLc0bDTztuB5oJq7AWJIY6FGOP+4GudtT6sQuVM8vh BwS1Mp+9gs0lDZTvhMsmS5htX1LZ4KdjPuucOO9xzTBkW/f1dbQPIMOiQkcRPifz+Hf5 QPw/7v07BWbzVNuJKZpnYQjgEPgti7bn+be+qlj4T/AF/N1qEcyhemfvoTsaO2ITQPXd nRVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=w5p4jCPE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bd18si6636729edb.609.2021.03.26.08.02.13; Fri, 26 Mar 2021 08:02:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=w5p4jCPE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230252AbhCZPBQ (ORCPT + 99 others); Fri, 26 Mar 2021 11:01:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230194AbhCZPBC (ORCPT ); Fri, 26 Mar 2021 11:01:02 -0400 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5724AC0613B1 for ; Fri, 26 Mar 2021 08:01:02 -0700 (PDT) Received: by mail-io1-xd2c.google.com with SMTP id n21so5681117ioa.7 for ; Fri, 26 Mar 2021 08:01:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=bg/XFgK0j4Bi2nzOGM6CJPuGBSSM2wwPb1IUUNZ4ZrY=; b=w5p4jCPEbegwqL/nLPd0eJhquxW4K7gr74rDlgmo0q9j5vfRhtfBbo3QQa8S56E8fu AGx2JxN0WMKpb2iZSEFWWrZE76sPsjvq7FRce0E2ewdJa2iSVOZcPR8WzLEFnx6w+ZPU YMDPY8WM5jVGiSkwE6QdEoJlpALgByfLgkqQ+vh/vtDanm1fByUbHfAGpasJCLNoTSeH 93D7GXS8OzVYnnnPTln82sGuVUWABUnlMZ8tW6W9+qsJ2JdQ5emGr1422YvR+UXYDRdK hWRucUvSjF3XYTluWRew/75UOe0ljhp2ooDHLivMCE97IflSY5mdjTalDMt5NVqrjsv7 4h8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=bg/XFgK0j4Bi2nzOGM6CJPuGBSSM2wwPb1IUUNZ4ZrY=; b=tqsw3KZntHC++pSpnBg/7csB+sm4aDv+wG0hiUM6m/WomFYiM9hS0EGRahKc/j0KbQ PcMQf3D4/wUnUtuIjDs+GdyBWFJdnNSDl0JdMsZ4mJmQZnPjtXRp2yqEsEAA97PfIZex rrXuBji1mI3dR1mTx8ONHBYBCvUswdyjyZOsYKphguly6j99ogbWdsR0bIYzRgIrJDZG KIaHhM27yGNaQpu7jbEUv+ms0XQRNpBwO1TwYJLpeEHhdqHZVHcsMHCOXlCb3XBy5h5F r3vb6QqP+oNIp8/0WcVvyHjVKbm2fm1RRPgLiG7Xm7qlZcYHJgs5CopT9lm2do1IzGk1 UX2g== X-Gm-Message-State: AOAM530/W4v3Hxi2KQCGm3oG34nhMy0k/Phuy1acBkoGVE96o1gzcKQY DHz235GGlutcfFFOhY6AwEsWoc3O+DLZaQ== X-Received: by 2002:a05:6602:21cd:: with SMTP id c13mr10293909ioc.44.1616770861565; Fri, 26 Mar 2021 08:01:01 -0700 (PDT) Received: from [192.168.1.30] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id i67sm4584479ioa.3.2021.03.26.08.01.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Mar 2021 08:01:01 -0700 (PDT) Subject: Re: [PATCH 2/8] kernel: unmask SIGSTOP for IO threads To: Oleg Nesterov Cc: io-uring@vger.kernel.org, torvalds@linux-foundation.org, ebiederm@xmission.com, metze@samba.org, linux-kernel@vger.kernel.org References: <20210326003928.978750-1-axboe@kernel.dk> <20210326003928.978750-3-axboe@kernel.dk> <20210326134840.GA1290@redhat.com> From: Jens Axboe Message-ID: Date: Fri, 26 Mar 2021 09:01:00 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210326134840.GA1290@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/26/21 7:48 AM, Oleg Nesterov wrote: > Jens, sorry, I got lost :/ Let's bring you back in :-) > On 03/25, Jens Axboe wrote: >> >> With IO threads accepting signals, including SIGSTOP, > > where can I find this change? Looks like I wasn't cc'ed... It's this very series. >> unmask the >> SIGSTOP signal from the default blocked mask. >> >> Signed-off-by: Jens Axboe >> --- >> kernel/fork.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/kernel/fork.c b/kernel/fork.c >> index d3171e8e88e5..d5a40552910f 100644 >> --- a/kernel/fork.c >> +++ b/kernel/fork.c >> @@ -2435,7 +2435,7 @@ struct task_struct *create_io_thread(int (*fn)(void *), void *arg, int node) >> tsk = copy_process(NULL, 0, node, &args); >> if (!IS_ERR(tsk)) { >> sigfillset(&tsk->blocked); >> - sigdelsetmask(&tsk->blocked, sigmask(SIGKILL)); >> + sigdelsetmask(&tsk->blocked, sigmask(SIGKILL)|sigmask(SIGSTOP)); > > siginitsetinv(blocked, sigmask(SIGKILL)|sigmask(SIGSTOP)) but this is minor. Ah thanks. > To remind, either way this is racy and can't really help. > > And if "IO threads accepting signals" then I don't understand why. Sorry, > I must have missed something. I do think the above is a no-op at this point, and we can probably just kill it. Let me double check, hopefully we can just remove this blocked part. -- Jens Axboe