Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6611807rwb; Mon, 12 Dec 2022 04:23:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf6hpDoD8xH6Fgq5SxYSDZdOLExK2zQfn3dtdQeYY2gnAaBNvLzr+twtXFupy3Dbc1lTUWY9 X-Received: by 2002:a17:906:f1cb:b0:7c1:2529:b25e with SMTP id gx11-20020a170906f1cb00b007c12529b25emr14372446ejb.43.1670847799543; Mon, 12 Dec 2022 04:23:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670847799; cv=none; d=google.com; s=arc-20160816; b=GB5/285kNf3GYy+wpucMy7vDOroQt2LnF7wig0cFII7L20FyaNXqdEouCyQsUW2x2D j/F1c4sOUSedkaRef0kXwDHunNKLVbryAUMppSgWnLxr89vp8C6VjeWe5u84P2L50dYz MikiJBCZr8GAym/Yb/u8WfCGhiuF/S1etZQHgIbPliJYxwQ8DGwxqEGx0dhZUwg4U44C T9TvzBdEfcNNludcP9/LbNY+FG5TaqKOg4MJoGCTekZcnxRDbuJoj77xyqhmiXf1Qgd4 ftzqvsN69xwST2KE8hqpU/ai0NDcOBhgbJW1gsVKNdXOmUGYJ+DLvWVqvuT0HPa5pBQ0 TVKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ff5rzn1x1a9IulOrFirS0vdxGOS+P3fKFHa6Fly2lnA=; b=ZByRy/irMfrHQUND06E8R42O5goZZY0N1V8aH7H7gHUG5PrQt/BhJ3ZxDLsrUPG5Ig pKHJEXHnZXYBLzsfYkzUmvFQdcuIjGXjfzBJIgGSnd+HbaAYMvYNSMPvEKEEDOYUeQnF AAjkMx+AJ6AMpMaPP1pt1NuvgLh9dMJ82OoDtLT4Wv5ZhhoxZ35ne1iUs69tg8t8sxSI f78b8Cit/dT43HQ/LA6whQGzZ8FnHIXQpD/vz6Qvr2vpCW9HfDdiaQ2ahbRKDqbWcjcP p2aKS5qLxJErgThdVGkEdiVpvK5yfaRucpMdRg/3rs5NxH3HYvd96WF9UlfkB/zIR2Q6 Ts4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=i1niLlk+; 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 jg15-20020a170907970f00b007c0bd0edd72si6696319ejc.163.2022.12.12.04.23.01; Mon, 12 Dec 2022 04:23:19 -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; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=i1niLlk+; 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 S231822AbiLLMBE (ORCPT + 75 others); Mon, 12 Dec 2022 07:01:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231495AbiLLMBC (ORCPT ); Mon, 12 Dec 2022 07:01:02 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA376D41; Mon, 12 Dec 2022 04:01:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ff5rzn1x1a9IulOrFirS0vdxGOS+P3fKFHa6Fly2lnA=; b=i1niLlk+R2j6V1t3aRlRXAbUAa +IVCn8vhtSengmC7jXcVAZ+PfpNBpY/nKJ44aSr6ZYL2wiQ1OAGiiQNJC7vjNJmeNJxMwQCd8tZxn 0+pT02JO4KgXeoCVfYNul91hXX61G0JoWuvOM+9/8q8LjMJfQO0ryXum1WpqxEAAtlGOSfMV8lgGk 8z+Nva9S7YL+OgYG9FlZ6wuLzmIKPAZVs83o9ZRNAfTkd6wAQCXRvI3MZ14C/mXcaejqXbByV2Aqc QMlpSSXSxtRti8FoYIBNi4IRZNfOVcvK66PxQBwfCvszMLDkgFB6y1+ep/ID+FUCjFVKX0H2Z/gIY fkVTyyog==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1p4hU4-009ldt-KC; Mon, 12 Dec 2022 12:00:36 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id AF6BA300129; Mon, 12 Dec 2022 13:00:35 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 99113209FB782; Mon, 12 Dec 2022 13:00:35 +0100 (CET) Date: Mon, 12 Dec 2022 13:00:35 +0100 From: Peter Zijlstra To: Tejun Heo Cc: torvalds@linux-foundation.org, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@kernel.org, joshdon@google.com, brho@google.com, pjt@google.com, derkling@google.com, haoluo@google.com, dvernet@meta.com, dschatzberg@meta.com, dskarlat@cs.cmu.edu, riel@surriel.com, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, kernel-team@meta.com Subject: Re: [PATCH 11/31] sched: Add @reason to sched_move_task() Message-ID: References: <20221130082313.3241517-1-tj@kernel.org> <20221130082313.3241517-12-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221130082313.3241517-12-tj@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 On Tue, Nov 29, 2022 at 10:22:53PM -1000, Tejun Heo wrote: > sched_move_task() can be called for both cgroup and autogroup moves. Add a > parameter to distinguish the two cases. This will be used by a new > sched_class to track cgroup migrations. This all seems pointless, you can trivially distinguish a cgroup/autogroup task_group if you so want (again for unspecified raisins).