Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2077653rwl; Thu, 30 Mar 2023 05:53:14 -0700 (PDT) X-Google-Smtp-Source: AKy350ZJL4k77Mw4oWpWhueiBtouFmmCs3PcwBWt0QC8nTRA00P7R7l5ap4v/e5IG0CP2GVb+yp4 X-Received: by 2002:a17:906:74c6:b0:8f0:ba09:4abe with SMTP id z6-20020a17090674c600b008f0ba094abemr1979493ejl.2.1680180793760; Thu, 30 Mar 2023 05:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680180793; cv=none; d=google.com; s=arc-20160816; b=TDFDmHxlKkgaVf8uN+xSczuAlLJzYTISGsdJ3RMrqgbSGeDmjASYRsiBB3kDkGOwz0 5JWIeLkI8Qsq03Olyj084gj2clBeG2p1YQa23Y+cDuzI8WXoXyjA5OqkBce25Fam8wmq g8j1inoUmTJPfDqsEFsOf/RalK3ZIXWzUk/PmXUbYgzQNCMDx9jTnp8VvfLUfJdVoVAx gg8cSOROi5oW6ZcV7BVdjEsigZsbhGoTbbLLFt9VUTtOZWFjaSBgr3nYo0ubSO1wfViF jmmDSQMwrMwuoZUU5dIGSijc4nAZZ9TP+72wSyRxqFWqjjmAXEL1X1k3l5LIlib08y+9 58DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=HbGjEXx+jyqCAwxZH7W6PHPukJFVfIQLQ8YKOTn0Tbw=; b=1FgyXAOUpwaDEsQpPdjQXfDdfrsAOJ2B99BI6B/PF76TvHbCoKeoTOqmg7kqBFi3Xo Q5lR/8/ErMIUWYefghRP7aN8MtdCyoBaew4afXFX08SzRzcyf7zYnx51HsZcnbgj3yD3 ZbjYIiXDK2YuFL51DDGZKuXvPSrJ5qHYl1sPmgq/W+HJ9PHz0nqd2gJFUz9LdpAZcsCr grMs4XG1dbNXdknn1WXbhCHZ3AFSWzwPbcXnebUzwawdXubO8alOVO3SRRZobu/LXC/X 6hYh6Gk8D06O0OOrzFpQ/hmarZgq4E4Jvbkqzqj5pnKbfXMy0sA/vKwXb8XDuNwQqcB8 qQ6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=bRUkS30u; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l11-20020a1709061c4b00b00925f618e1e6si24811739ejg.174.2023.03.30.05.52.48; Thu, 30 Mar 2023 05:53:13 -0700 (PDT) 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=@google.com header.s=20210112 header.b=bRUkS30u; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230518AbjC3Muk (ORCPT + 99 others); Thu, 30 Mar 2023 08:50:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbjC3Mui (ORCPT ); Thu, 30 Mar 2023 08:50:38 -0400 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06F1D119 for ; Thu, 30 Mar 2023 05:50:38 -0700 (PDT) Received: by mail-qt1-x82f.google.com with SMTP id p2so13185575qtw.13 for ; Thu, 30 Mar 2023 05:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1680180637; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HbGjEXx+jyqCAwxZH7W6PHPukJFVfIQLQ8YKOTn0Tbw=; b=bRUkS30ulCJDPDGe4XhYBwj0mLzABtubCJxyhnb+dQFkqOU34oh40GYRYHdf1WkKil SKljGeAtcE4NtVyQti4nAQbAeefchPbi48bccJ5q6EQITFVTgyQULkQq6EDj+t/um02P O7rVhEdGqL7qGCBY4u1c1T2cINcATHg5+yxHrot8xr7BoaSVkJZjbPbRhugXRPalYulG KnOy0G8m/+iUEtQz9/UrJfg89O0G+reeTy9ncxdzRAw0nsYbWyzeQu56AR/ytcSLVdPJ BGBB0sAH6ZigWctJvNn+yDDkU8AWY7my6MOvE4EeTdvJA9ksP04n/7QXtzd4l/BASIkl CxLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680180637; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HbGjEXx+jyqCAwxZH7W6PHPukJFVfIQLQ8YKOTn0Tbw=; b=IIMQKuTzkdcadZKUVN8nG5s3VHByIaMO2Q3rBThHsVkBKrKsMZA4fuv/63/bfZbatr nShri5UsdcRyX9k02l7uUvGo3bMmi41pzFME31UJknu9qH8t2RNVKxbpNavYpIbbWJQq FGxQKeryvGU3+BItecVQ/2w4qfQJNJhkXASN2z/CkZYjReTK3hXv0jJqi2dwA43cXJoU +y66EE7+wN2aCp8+movuFAc9VGx8PuiHNm/ZJ7beSaW1Ok/jW5yCrFAVnL9ZRuD3t5ol z8ttdAWaDsdzbE4U8YvAdA7NLKge/s4y0ZeaOsY7aPoIlsH60JkQD70jDlgFmF4ojWWt tC0Q== X-Gm-Message-State: AO0yUKVmAxlJp0TSY6WY6ebwo9LJI6kz5AiXDXEp3wQH18GPn6S4soCc xyOepROjUGS0bjSv/CmhTBaS+QkNZU1SQ86kRep3bQ== X-Received: by 2002:ac8:7c48:0:b0:3e2:dd92:6d27 with SMTP id o8-20020ac87c48000000b003e2dd926d27mr8913844qtv.9.1680180637086; Thu, 30 Mar 2023 05:50:37 -0700 (PDT) MIME-Version: 1.0 References: <20230308131452.383914-1-peternewman@google.com> <20230308131452.383914-3-peternewman@google.com> In-Reply-To: From: Peter Newman Date: Thu, 30 Mar 2023 14:50:26 +0200 Message-ID: Subject: Re: [PATCH v4 2/3] x86/resctrl: Parameterize rdt_move_group_tasks() task matching To: Reinette Chatre Cc: fenghua.yu@intel.com, Babu.Moger@amd.com, bp@alien8.de, dave.hansen@linux.intel.com, eranian@google.com, gupasani@google.com, hpa@zytor.com, james.morse@arm.com, linux-kernel@vger.kernel.org, mingo@redhat.com, skodak@google.com, tglx@linutronix.de, tony.luck@intel.com, x86@kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-15.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=unavailable 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 Hi Reinette, On Thu, Mar 23, 2023 at 7:02=E2=80=AFPM Reinette Chatre wrote: > On 3/8/2023 5:14 AM, Peter Newman wrote: > > +/* > > + * If @from is NULL, then all tasks in the systems are moved unconditi= onally > > + * (used for teardown). > > Could this description be expanded to describe what the matching does? Ju= st jumping > in with the above sentence is quite cryptic. > > > + */ > > +static bool rmdir_match(struct task_struct *t, struct rdtgroup *from) > > Could the function's name please reflect what the function does as oppose= d to > what the current users are doing at the time they call it? Perhaps > something like "task_in_any_group()" (thinking ahead about a possible > "task_in_mon_group()" for the next patch, please feel free to change). > Also note that the "from" is another naming that reflects the usage as > opposed to what the function does. It could just be "rdtgrp". I read over the behavior of this function more carefully to try to come up with a more descriptive name and realized that for MON groups it behaves identically to the new one I created for rename(). The original rdt_move_group_tasks() was actually fine all along so I'm just going to drop this patch. -Peter