Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3170571rdb; Tue, 6 Feb 2024 09:04:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHBuDAGBlBRq5kKLw89QCCZ5rUYdtpMvRRd1Gd/LUdTliM+6QKBHmG3AIN/fkoHj2+WOmy2 X-Received: by 2002:a17:906:a184:b0:a37:4c04:a472 with SMTP id s4-20020a170906a18400b00a374c04a472mr2072137ejy.18.1707239064991; Tue, 06 Feb 2024 09:04:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707239064; cv=pass; d=google.com; s=arc-20160816; b=OzzCjpC3kVYcDdzwyDacovrfzSPJHHlvTNe3atwnOJL8NgFDZZ8yfi0lM0tddtSlyJ Ax4ZCR7Dy3mtw9MEsV1FcvAGUwwlD/v8M3X/C1+WpDESFLf239DTeOOXJOC9QLRv7EjX SJw6cQk+kP2AGtK6Wutyc5hx7VvyGOAYisn+GJ6RrAgUwS6wg8+xR/XsIjPrCrvq22YP Xosto4VourqMYJclR3VJcHqoOpZB4DEH8zo7r7hDoFy9/cdhvCiTsQPz+NPU4ccLNfC/ NbrRKsz98vxjiZB1R4zHXWrVe/8w0QP6BQKE12OByDx1lQeMpaGXkI3eqv8AZrrLd2ZL PteA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature:dkim-signature; bh=VN8Cd/6/QUIMRCH56wbkEB8qncG2Wz7ukEomi/HXzmw=; fh=DgnAFsKNUpiVpPOkExr99GwUTnVTIqmHc20viLFBZYg=; b=UqfqJ9JWOxTygDI0KA2ckyjda0d3r2sXVEcoxgDuxylgg2xUyuy/35qO/4VsdxK3qW Vj8r6gbzlgJFHw6PBMrZJ2WrwepNeJRo6PA1Ioc3Bd6lpDvMyzVEARy9ULhnT02Yahuu pknAYr8Q1TxV/j/Hvzf1PpRQPpMre/zzYFZ/wHWR52Tt2qXAQmFHAZgl+L9FVXvK3i11 fdV6wagAivEIE50oq2VXjxXjp9oFBkrlP5vLjdtBS5eeDMc9fPmqgYURwTNoV2Jch63e mbsEKwf5q4m03jR50cJ47XRlePDB9eG4WhEWC+9rro6buMMSIwpDzghx3g4k6NtLMNz1 zr5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tycho.pizza header.s=fm2 header.b=PdkpBL6u; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=nFK0Oj36; arc=pass (i=1 spf=pass spfdomain=tycho.pizza dkim=pass dkdomain=tycho.pizza dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-55348-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55348-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCV46VL9BHyFeTcZW130QJykz3tl/rukkAOM0pYlzyW9lcVynDf28jKryPoiehYzk3UXnKeDnEHwhOC69EdBtGfycan+vhXqxuoDfNn/ww== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id fx5-20020a170906b74500b00a3609336f26si1318849ejb.685.2024.02.06.09.04.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 09:04:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55348-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@tycho.pizza header.s=fm2 header.b=PdkpBL6u; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=nFK0Oj36; arc=pass (i=1 spf=pass spfdomain=tycho.pizza dkim=pass dkdomain=tycho.pizza dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-55348-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55348-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id B526B1F24681 for ; Tue, 6 Feb 2024 17:04:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C9056FA9; Tue, 6 Feb 2024 17:04:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tycho.pizza header.i=@tycho.pizza header.b="PdkpBL6u"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="nFK0Oj36" Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (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 7EF94DF67 for ; Tue, 6 Feb 2024 17:04:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.111.4.29 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707239053; cv=none; b=dCeVfjfz5WCpiUKTQWaq4XHCozYdsf/ZDf4I13xL1QuGHwLZKEV2isJrm6WiTe54SchrAZSlVlgyM+K3W4TUKdNyrMdC0qV6OCOyfGxcZ1+M2zbYfF0fDbF5EMCTBDB2xjepcxqQXgEeimMKuvjEUaI2mrcrh4AVg0s5tuj8SUo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707239053; c=relaxed/simple; bh=q/OfiRJpq+x5oplySSR5jJ5wnGPv1JYrJIt8jWN2g44=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DjXkyR+NIMTk6bi1VFCJoULWRUUUdG86ZSBJ/wvitsol7mZfCbTsX3YZV9kqA4HlbqXS/ehl/86jp9iDwVeh+HionGyzt7eJICkMWhkY4M/L4CJ7RJJ33Uyk3HxBupFnZfkuNIFqNVFLTjgmbTyJF44Xg7fUIfLtYOocUV5BTeo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tycho.pizza; spf=pass smtp.mailfrom=tycho.pizza; dkim=pass (2048-bit key) header.d=tycho.pizza header.i=@tycho.pizza header.b=PdkpBL6u; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=nFK0Oj36; arc=none smtp.client-ip=66.111.4.29 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tycho.pizza Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tycho.pizza Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 3670D5C01CC; Tue, 6 Feb 2024 12:04:10 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 06 Feb 2024 12:04:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tycho.pizza; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1707239050; x=1707325450; bh=VN8Cd/6/QU IMRCH56wbkEB8qncG2Wz7ukEomi/HXzmw=; b=PdkpBL6uXWQh544B3B7Muxtw5B TgSqYOcRkvNUeSjItgvFabWYGEVty1rt+2At/Z9msuJC4yTt1i2UKi/OuJo6peJg 5pY9nY8hgXQINpWEYhzqM250HMysGLGWgE6T18Ct9FzmzUjZ+EfpL+oYbCOxQBGB HBE3hUZm+ivOWFJTKT+upcUxf3y3kL6tOvMepjxPpGsqhTWTtjTFNalmWwEdJwfr PtmxG5aV83permqbJgCjghi25jgAhFrZfimD8vOD1XLx2kEgN2iAKKfF/J62OX2S iAw4C/u8ETNyYcWebuvHC0RDsDSdMmMHLZSrPoGmQnObLBKAFlaYrDvOncFA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1707239050; x=1707325450; bh=VN8Cd/6/QUIMRCH56wbkEB8qncG2 Wz7ukEomi/HXzmw=; b=nFK0Oj36OyM4CdWrQx9JbFjjeu3YHOUWnmncUuN6Y8qk Pwg4sqlRT6X3Lr6xHrg4GctS2IYHVO393i7mIF8nwnKiNQrZ+XeXn8L/OzIwqyDA cvNFOh8skoNzTsJbU7VcGvMVcnhjqVyxjjMq1fvvKpHzBOsVGmEpd4TC9a2Oetu4 JC4fZzUIlOl0hIAYRtLRJRIGD7O0ZH26Xu8Mpkn/w4flBckGbGnNw3CULLHD/d4N ZTnVkLTyFjvI57XKjfb1dnrIc0WaBkD9ZPDQ6bT68NyBSb+HuTVi5R+XQ39ZmqmP Rw3FAevWBvDmeujJD8FXAN/ciMEbJHke5xhfAqzIBw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrtddtgdeiiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefvhigthhho ucetnhguvghrshgvnhcuoehthigthhhosehthigthhhordhpihiiiigrqeenucggtffrrg htthgvrhhnpeeutedttefgjeefffehffffkeejueevieefudelgeejuddtfeffteeklefh leelteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hthigthhhosehthigthhhordhpihiiiigr X-ME-Proxy: Feedback-ID: i21f147d5:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 6 Feb 2024 12:04:09 -0500 (EST) Date: Tue, 6 Feb 2024 10:04:08 -0700 From: Tycho Andersen To: Oleg Nesterov Cc: Christian Brauner , Andy Lutomirski , "Eric W. Biederman" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] pidfd: exit: kill the no longer used thread_group_exited() Message-ID: References: <20240205174347.GA31461@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240205174347.GA31461@redhat.com> On Mon, Feb 05, 2024 at 06:43:47PM +0100, Oleg Nesterov wrote: > It was used by pidfd_poll() but now it has no callers. > > If it finally finds a modular user we can revert this change, but note > that the comment above this helper and the changelog in 38fd525a4c61 > ("exit: Factor thread_group_exited out of pidfd_poll") are not accurate, > thread_group_exited() won't return true if all other threads have passed > exit_notify() and are zombies, it returns true only when all other threads > are completely gone. Not to mention that it can only work if the task > identified by @pid is a thread-group leader. > > Signed-off-by: Oleg Nesterov Reviewed-by: Tycho Andersen