Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1376118pxf; Fri, 26 Mar 2021 06:50:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnyYPVo3onx+PQh560op9h9DfUTOT3r7srdQdRT5NcWFuUfVjAgMGRJ/AmAOak7yt144p3 X-Received: by 2002:a05:6402:35c8:: with SMTP id z8mr15123744edc.341.1616766646682; Fri, 26 Mar 2021 06:50:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616766646; cv=none; d=google.com; s=arc-20160816; b=o5zztQh5DZZunV1hloiRW4kRiZ9SuG3xG+8N1prpW7OWU11+sJNDYmNszwadUrc7XN hk2GmOwy0mbFFI3K/abVOndcq7ayqePVZT3bcIhGXCZY4PdcoW9XuZNxP00L87S83XSe HJKMsqvykRyububIU+hiREzAQ7nSnYe4RI6GXO8w9cZ7+1HigGGKERvTGLYWwTbXv6mL 7PQVfuyftYdO7idrOt5BtlHU/+QmnxP8T54hpKdwS87dn+uPFmzpJWYMCbz1syf8hOvJ rOKvpi2Mgo4bkV4oRfsPPgKEv1GxQXANdpFlK7+mS5/BAncbAYGIBCuL32hXJqByYXec copg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=wftucUMFQaOllmombeSNT//n1WKcSqJM+IZ/swXQYUo=; b=btKNUnJCkag0vTUziYQnZPlt94YVSoA0T9FFD1NNj7WdPYldWoZXvodmjE9VMPlmat mWIo75rbu9Q5KkAp8od08j+Jv0TaSM+0/O/iBxEDQD1MB3ND0G4AtQGMxYJA3zqVSygh rXqaJAlwF8zmmTNgIlpN4hlJI3Lc7lC4hliyW1wF8RgzHQ4Id7kcLAfvv+dq6zMhONDa gRPhPSFxxHyumj16+x6wVZiZ8O32cNoGZzNPIxOB8ooWOoy8RxPwEVIkEXtqqXVDMd8J h9BtiLGAcIYoVeEr/W0+JrG49QpFX6ByRUZCylkCpBPr+EIF6b04ejJdhtV0Y6MKn6Ef V2YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="U4gzFzC/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si7104286ejh.0.2021.03.26.06.50.23; Fri, 26 Mar 2021 06:50:46 -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=@redhat.com header.s=mimecast20190719 header.b="U4gzFzC/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229671AbhCZNt2 (ORCPT + 99 others); Fri, 26 Mar 2021 09:49:28 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:43348 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230210AbhCZNtT (ORCPT ); Fri, 26 Mar 2021 09:49:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616766559; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wftucUMFQaOllmombeSNT//n1WKcSqJM+IZ/swXQYUo=; b=U4gzFzC/mE+1+4mLSENkKhRKBrX8APgnFgzi16p1EVTV3zrR3xJZTqXkxUEw50q/HMzZTD Xac+8pKAk8KSNieb5pm3U+WUQBv6wttRLYwUIC1R5qqnc12h2Jy2vss9rR+4d8bD0v288m aOMBXZ6mfXEFV9ZYEuOSAxCxXFDvZaU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-355-lziEHDBGP-CIEoy5rswQLQ-1; Fri, 26 Mar 2021 09:49:16 -0400 X-MC-Unique: lziEHDBGP-CIEoy5rswQLQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 270B796DD14; Fri, 26 Mar 2021 13:48:45 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.40.194.37]) by smtp.corp.redhat.com (Postfix) with SMTP id BB21A6062F; Fri, 26 Mar 2021 13:48:42 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Fri, 26 Mar 2021 14:48:44 +0100 (CET) Date: Fri, 26 Mar 2021 14:48:41 +0100 From: Oleg Nesterov To: Jens Axboe Cc: io-uring@vger.kernel.org, torvalds@linux-foundation.org, ebiederm@xmission.com, metze@samba.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/8] kernel: unmask SIGSTOP for IO threads Message-ID: <20210326134840.GA1290@redhat.com> References: <20210326003928.978750-1-axboe@kernel.dk> <20210326003928.978750-3-axboe@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210326003928.978750-3-axboe@kernel.dk> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jens, sorry, I got lost :/ 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... > 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. 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. Oleg.