Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4280236pxb; Mon, 21 Feb 2022 16:48:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcP1ducfkDGdPXu2wuvKoG91ffw/38xOlO+fIQBQoCbq192bq1w8qsqfC98r3dV4ISam94 X-Received: by 2002:a05:6402:2694:b0:411:f0b1:7f90 with SMTP id w20-20020a056402269400b00411f0b17f90mr24824626edd.398.1645490926469; Mon, 21 Feb 2022 16:48:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645490926; cv=none; d=google.com; s=arc-20160816; b=pS4fuSKvmldu/N94ZJNHg6Cor6GH8G18DVmrrayfaycsaKTdShFPrEd+S50L4zYyZH Qf0jrBv9nZfnM7tL4KWsDIOvZEpNhTm2x2xIybrrq4pnhqXYQWXQjI5S5nHLkZ+/6NiR j87kyhJi80tE/b9qPgAYOSyrt11O02rg3Eers83aHHvfb7U2yuWfoKzs9g3URqk+HwE1 gVYXnFgvnP27vso/LzoOE187/TpYLNOXKIOe1plJQ2xWJwJXtnb7qEo3EYN2GL+Ro9qS bdn1dNvSQ1fzRb77AAcKoIXSCsMoGesaMAFl2u0XPdUKq99HnLJNkOPuyTxMxDE6khrF W1JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=xbo7JQwIHkjCwOr0wlXJ0IjiiECAET3WOWzoej6sw1s=; b=H0Hn3mdoP8+6CdApAWve8bZDY9nr2880AOmJDVgA5bQTdTm18DitelJ6mKkHe/lLAm nXbXwb1M96p0CJB1WoFDJAKMlBw7pr3Q4RqMwUb+BOQDvcVwRvggAcHHm9/D/yitBWs2 nN7yOnvJ4m8driUlRpbb5LL7cSHjocBhhw7U0DSQKl6oWD20tiSM6lQVDWFG0tcjjYFs 1JVVyh5J+CYGhtYfAKQHYvoxdGyEpQ+rnCW2xDuvqB1lAwi8wLZHpsqKb/f/us4YkTt3 dOv45BZt8Rb3u9TlEBtwSyqLsan3vUlfdGF+PApN9iz+UeyghbCPMYiyF57LH3IfO7os 1r7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fz1si12699401ejc.338.2022.02.21.16.48.23; Mon, 21 Feb 2022 16:48:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235743AbiBUWqi convert rfc822-to-8bit (ORCPT + 99 others); Mon, 21 Feb 2022 17:46:38 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232926AbiBUWqh (ORCPT ); Mon, 21 Feb 2022 17:46:37 -0500 Received: from mxchg03.rrz.uni-hamburg.de (mxchg03.rrz.uni-hamburg.de [134.100.38.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72C861EC6E for ; Mon, 21 Feb 2022 14:46:13 -0800 (PST) X-Virus-Scanned: by University of Hamburg ( RRZ / mgw05.rrz.uni-hamburg.de ) Received: from exchange.uni-hamburg.de (UN-EX-MR08.uni-hamburg.de [134.100.84.75]) by mxchg03.rrz.uni-hamburg.de (Postfix) with ESMTPS; Mon, 21 Feb 2022 23:46:11 +0100 (CET) Received: from plasteblaster (89.244.206.97) by UN-EX-MR08.uni-hamburg.de (134.100.84.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Mon, 21 Feb 2022 23:46:11 +0100 Date: Mon, 21 Feb 2022 23:46:10 +0100 From: "Dr. Thomas Orgis" To: Greg Kroah-Hartman CC: , , Balbir Singh , "Eric W. Biederman" , "Sudip Mukherjee" Subject: Re: [PATCH 5.4 32/80] taskstats: Cleanup the use of task->exit_code Message-ID: <20220221234610.0d23e2e0@plasteblaster> In-Reply-To: <20220221084916.628257481@linuxfoundation.org> References: <20220221084915.554151737@linuxfoundation.org> <20220221084916.628257481@linuxfoundation.org> Organization: =?UTF-8?B?VW5pdmVyc2l0w6R0?= Hamburg X-Mailer: Claws Mail (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Originating-IP: [89.244.206.97] X-ClientProxiedBy: UN-EX-MR07.uni-hamburg.de (134.100.84.74) To UN-EX-MR08.uni-hamburg.de (134.100.84.75) X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mon, 21 Feb 2022 09:49:12 +0100 schrieb Greg Kroah-Hartman : > As best as I can figure the intent is to return task->exit_code after > a task exits. The field is returned with per task fields, so the > exit_code of the entire process is not wanted. I wondered about the use of exit_code, too, when preparing my patch that introduces ac_tgid and the AGROUP flag to identify the first and last tasks of a task group/process, see https://lkml.org/lkml/2022/2/18/887 With the information about the position of this task in the group, users can take some meaning from the exit code (individual kills?). The old style ensured that you got one exit code per process. I addressing ac_exitcode fits together with my patch, while increasing the version of taskstats helps clients that then can know that ac_exitcode now has a different meaning. Right now this is a change under the hood and you can just guess (or have to know from the kernel version). Alrighty then, Thomas -- Dr. Thomas Orgis HPC @ Universität Hamburg