Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1418274lqs; Sat, 15 Jun 2024 07:54:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXN/IFasWhM0Xxn4M5SjoS0yBUJbV/5AC6F0jfX5aqCUx7AwbvIPbZeAH2fM8Fw/WXh7/dA45JRhzNBo/nk2oH9diTqPvszMRqMtnWkng== X-Google-Smtp-Source: AGHT+IErnorjLgT5pd5u0Y1WiTPWftU0V/yUFRuciZs6ELCYCDR2jscaQuXJf/GOguI2mwbrqAxu X-Received: by 2002:a05:620a:1a1e:b0:795:fc7b:4bcc with SMTP id af79cd13be357-798d23e58dbmr647428285a.6.1718463266827; Sat, 15 Jun 2024 07:54:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718463266; cv=pass; d=google.com; s=arc-20160816; b=WjAgR3RU1CplyWG6TZR1xDXRL41I8CSkD2QMhTJcEVgW6MPMtX7CN0YSezFmlYhgPe vNbdnbsjB28bJMqDhK6qySwkyzh0O6epu6/9ePXUsA1hFjmpCgqKPRYdtUzgN8+zXT6H ka0/qk/8m+HVf0kusWSMJm3GbsZPo+gyU+Z1bOrgx5rNX8bgA6Ic/+qutnUDBKOU0aMg NGN/SygkKIA087gp961+UThM2pzgYfLQQFjeC8nbDwwuni/Or8PxIeHqABerps0Q4jwk za+uBbVBnXt1jk37Nvh/dbDIWtGPBghBhznTb8nRNFHBrqgIARhRzsh0lI6Rt0z0bcoX +9XQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:user-agent:message-id:in-reply-to:date:references:cc:to :from; bh=YXK8jnrBGrfsHlyQpIpsbuv20zFHi8XGQJCasvSkP6s=; fh=EJGg2v/iPZ6n66F5LVNCDe5nhPk7td9jsKyILeuzwW4=; b=KJRge4xRZxiZjmaRbS5i6X7HQ4219YW6CbH/Uht4AAOZLHnScdwZfuQMJcf0qh23Ir OSqwErNmLUFNd8qFjVa6fe83kwzWjnQ0eWRpjxRWPjt+y6M+tA6mpI0ZpI2tvsvcPPje 5BJPrAeUyfWOHW/v4qGrPPfgcvHnR4hzz9T+Xb9DZI7C+ZBmY4Fwr3s+7dbawzuoE3o6 wwqXEh6mdGqVYvdXvIlUAx7tEe2yRGCiwrUjj4syJlyGiYu3GOaCIHsliezA49zeOi9f 0/0xhdYovLZd+OzcrGpAOvKJmva1Tcafdlsw/9ExqEqv1nZdNzLEDuADVt2sT2OMG342 V2Iw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=xmission.com dmarc=pass fromdomain=xmission.com); spf=pass (google.com: domain of linux-kernel+bounces-215912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215912-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-798ab9f83e1si600986985a.272.2024.06.15.07.54.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 07:54:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=xmission.com dmarc=pass fromdomain=xmission.com); spf=pass (google.com: domain of linux-kernel+bounces-215912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215912-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8C3A61C20C0A for ; Sat, 15 Jun 2024 14:54:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6DC449635; Sat, 15 Jun 2024 14:54:19 +0000 (UTC) Received: from out02.mta.xmission.com (out02.mta.xmission.com [166.70.13.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB2591DDF5 for ; Sat, 15 Jun 2024 14:54:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=166.70.13.232 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718463259; cv=none; b=sVcUcjkPCX8vkbhN+Ya/fb2g4DwBuIzmHspFNOoX1Rx1kdvAZevOKkokAyJgmojlVwhUL5pOvIzCAKw2W5wUKddVOmrM1xeOecVU5OQj6hDdiT17RWEhdiLkrhC434b/LJC4cvbdN7Z+kpZ896aBmLFuE2FBAuqw7KbgFtAuOpU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718463259; c=relaxed/simple; bh=GiTLolI8/+VouHpYOaQjCwZfZHeuLNqH8afStKeCyMw=; h=From:To:Cc:References:Date:In-Reply-To:Message-ID:MIME-Version: Content-Type:Subject; b=rP9o8QFMwx0OLG1WAjYXULv51kvCFK/tEM730BmUtlSKwzOTt/vHiOKH3TLFnm6xjJLIlwFwjd0wlw5JHmQSrq+TNLMsxVBi8GXSn4C+GE0tYFgXHPmyBIg9Ooa0CIOdA6N9mRvG95JjPAWwnoMWkoxiZ90iS9t3YLZLZLGqVrQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xmission.com; spf=pass smtp.mailfrom=xmission.com; arc=none smtp.client-ip=166.70.13.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xmission.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xmission.com Received: from in01.mta.xmission.com ([166.70.13.51]:43078) by out02.mta.xmission.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1sIUnD-007mrm-4l; Sat, 15 Jun 2024 08:54:11 -0600 Received: from ip68-227-168-167.om.om.cox.net ([68.227.168.167]:56192 helo=email.froward.int.ebiederm.org.xmission.com) by in01.mta.xmission.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1sIUnC-00FDhC-CC; Sat, 15 Jun 2024 08:54:10 -0600 From: "Eric W. Biederman" To: Oleg Nesterov Cc: Andrew Morton , Tejun Heo , linux-kernel@vger.kernel.org References: <20240609142342.GA11165@redhat.com> <87r0d5t2nt.fsf@email.froward.int.ebiederm.org> <20240610152902.GC20640@redhat.com> <20240613154541.GD18218@redhat.com> Date: Sat, 15 Jun 2024 09:53:21 -0500 In-Reply-To: <20240613154541.GD18218@redhat.com> (Oleg Nesterov's message of "Thu, 13 Jun 2024 17:45:42 +0200") Message-ID: <87ikyamf4u.fsf@email.froward.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1sIUnC-00FDhC-CC;;;mid=<87ikyamf4u.fsf@email.froward.int.ebiederm.org>;;;hst=in01.mta.xmission.com;;;ip=68.227.168.167;;;frm=ebiederm@xmission.com;;;spf=pass X-XM-AID: U2FsdGVkX194SSDtlIahBGSmT2L+QMDJNQJJ8cJuGnc= X-SA-Exim-Connect-IP: 68.227.168.167 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Level: * X-Spam-Virus: No X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4991] * 1.5 XMNoVowels Alpha-numberic number with no vowels * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa03 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_02 5+ unique symbols in subject * -0.0 T_SCC_BODY_TEXT_LINE No description available. * 0.0 T_TooManySym_03 6+ unique symbols in subject * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa03 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: *;Oleg Nesterov X-Spam-Relay-Country: X-Spam-Timing: total 229 ms - load_scoreonly_sql: 0.03 (0.0%), signal_user_changed: 4.1 (1.8%), b_tie_ro: 2.8 (1.2%), parse: 0.96 (0.4%), extract_message_metadata: 2.9 (1.3%), get_uri_detail_list: 0.86 (0.4%), tests_pri_-2000: 3.1 (1.4%), tests_pri_-1000: 1.96 (0.9%), tests_pri_-950: 1.15 (0.5%), tests_pri_-900: 0.83 (0.4%), tests_pri_-90: 76 (33.2%), check_bayes: 75 (32.7%), b_tokenize: 3.4 (1.5%), b_tok_get_all: 4.5 (1.9%), b_comp_prob: 1.24 (0.5%), b_tok_touch_all: 63 (27.4%), b_finish: 0.81 (0.4%), tests_pri_0: 121 (53.1%), check_dkim_signature: 0.36 (0.2%), check_dkim_adsp: 2.3 (1.0%), poll_dns_idle: 0.84 (0.4%), tests_pri_10: 1.73 (0.8%), tests_pri_500: 7 (2.9%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH 0/1] exit: kill signal_struct->quick_threads X-SA-Exim-Version: 4.2.1 (built Sat, 08 Feb 2020 21:53:50 +0000) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Oleg Nesterov writes: > So... > > Eric, do you agree with this patch or not? I really don't. I think skipping some work if SIGNAL_GROUP_EXIT is already set is not necessarily wrong. I think we need the quick_threads count, and related cleanups. I was hoping to be able to post a patchset with this reply to explain things, but it looks like that is still a couple of days off. Where I was going, and where I think we should go with quick_threads is an exit path that is much easier to reason about and maintain. But the decrement needs to move into the same code that sets SIGNAL_GROUP_EXIT. Which makes it something very different from signal->live. Eric