Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp717866rwb; Wed, 7 Dec 2022 04:18:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf5mxhqtaI/xNkBfJ6TuyeY+UugSTMdRfys8FQHQzCHHYhjqjakcEYc4vviX/ZUlwmcaPNi7 X-Received: by 2002:a17:906:811:b0:7c1:98e:b910 with SMTP id e17-20020a170906081100b007c1098eb910mr6710717ejd.81.1670415534464; Wed, 07 Dec 2022 04:18:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670415534; cv=none; d=google.com; s=arc-20160816; b=MpwC9AP3msjkiJWGwZUNHEisi+ZdLKRBEjgcLQpgpBeZNvD1U4ucR7GihMYzPt7yxr l16QFH57YFhXfcg+lB+Nx//akjpPh8+AwW949IODCAY+2+xZ5LOVzCwBSQbbRi3mC4Wt Ub2+WYPoAIrlHYsI1Rm6QB/ZQHb+/GyvyQ+IYUk9ZV/P2FZVyAJIvcM1yl3vSIzy6w9u lDG3qun1G2DqDMo6urpTCiYugIOuVJyG24NQTdO/LpFvEQVLEAL4xLAHMzkCgLguvp+0 p9nayQB+0v9K2FZ68WjnzafSUTLbtjkQbUgFwzc9v9mSUpdwOa9yRpFJNnREIeRbXcQ2 +GZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=A004RH27yVsShX10es4mKOUHHS7leP1ZS2svQPkqdf8=; b=qCa69Da5MKqep5txz6bKqkXEnh0/tSb3cauQpMSFGFwMzHZ8YHlj2bniPEj58LKuhc Lzx3Fh0SVXdjzgwfbUzr+DKe9Io4ROMjoZKoHcO/w2T7S+Z3DIs+SgagFOhQE86xy5Ve 5evJU3svetBEhYFTFhIJyiKkuTnAy8YQSqsd7t59/ZLCN0AUK0adI5TCOMAfvdGEhAFW fNkXLQ3jbR+1D8Kf17kO7hvWuXkp6Ww62dLdv6QCC1WbcZsYSW0cs/pzopbBF5hos+eP e9mXJ4RQ5zhXBoyi6AFIi/dWAilHhBzchrDeqYdltZYI0UPZ2jjzZhoi0dH8Fox88Zyy 04QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=WtDZ1Fmu; 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 sd29-20020a1709076e1d00b0078de536a3cdsi18064107ejc.119.2022.12.07.04.18.35; Wed, 07 Dec 2022 04:18:54 -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=@google.com header.s=20210112 header.b=WtDZ1Fmu; 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 S230062AbiLGLGK (ORCPT + 76 others); Wed, 7 Dec 2022 06:06:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229638AbiLGLFA (ORCPT ); Wed, 7 Dec 2022 06:05:00 -0500 Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B8055F60 for ; Wed, 7 Dec 2022 03:04:59 -0800 (PST) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-3c090251d59so182357067b3.4 for ; Wed, 07 Dec 2022 03:04:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=A004RH27yVsShX10es4mKOUHHS7leP1ZS2svQPkqdf8=; b=WtDZ1Fmugh+sqi/kBpK9nicrxzRoIAcrmN8xUI2nug+/Cob7mg7qDiyjy2PFsPHqPV 8PdHUMj5lgDTxEOVbeTk1qDy6mus992ZzYnhxNa7AojeL8/334fio0M4RrPAVSipd5BY s+T3vQR6+cptuVbFJmzQkAloZy4ydjHYus2Mws64NS3pfv1Wlc9xet+OI4EKwKODNF2m bSOvdVDnV+AB7WyjpxOT2y4vdLFnpmaM31deQq2J1JRFhf5czEg1Z6uEqeyiuHtPxpp/ MrEJwoueIwPsPVo4Ywk1KQmLWHEq5x3DtLN27htfydBg+HD9AOtMkjpSy8ozMqqhUatM XL6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=A004RH27yVsShX10es4mKOUHHS7leP1ZS2svQPkqdf8=; b=gSVVUYMG9ToWPHE0cRJNLTd/AaMZchYiGSBnGX/WeF4/zgSmMpuzVgmy2GyELliXjS p3jmP6jHw0tL7N3Pxt8v+YPx6l6KZzdb7PlmMbau6y5huY4weuAM9PpeuI2BCnFtUcx0 CXD+Pc6liC8tyQjFuFl2jty4NfTfU+M8GuOSNYh1r4MYi3JL6Ev7xt6dEAGH83mnHQFn PE2TNcABzkddhHw2QTXnotcxvreqT2WNGAO5yviRB+dttXvFBeuVYx3kgzzNS80u+m4O jsBSfJaOXhYiMe6VC3G4LcxJXd9qAtzbffZetHCUZG12RZvpijjuAz3hN8JEDyYXLtFU MYdg== X-Gm-Message-State: ANoB5pl6pA44Zm7PffXlEaPjBU48IBP+g2SiaC7AL4rYYcV9DzC8ZvtK 90VAtCma4aT6MbM2lKgxdZcrBa8gP1YpJN7Xl+VBRA== X-Received: by 2002:a0d:ebc6:0:b0:3df:ba1d:f51a with SMTP id u189-20020a0debc6000000b003dfba1df51amr22237443ywe.64.1670411098444; Wed, 07 Dec 2022 03:04:58 -0800 (PST) MIME-Version: 1.0 References: <20221129111055.953833-1-peternewman@google.com> <20221129111055.953833-3-peternewman@google.com> <60e7ba72-edff-9bf7-0541-403f25b5bc51@intel.com> In-Reply-To: <60e7ba72-edff-9bf7-0541-403f25b5bc51@intel.com> From: Peter Newman Date: Wed, 7 Dec 2022 12:04:47 +0100 Message-ID: Subject: Re: [PATCH v4 2/2] x86/resctrl: IPI all online CPUs for group updates To: Reinette Chatre Cc: fenghua.yu@intel.com, bp@alien8.de, derkling@google.com, eranian@google.com, hpa@zytor.com, james.morse@arm.com, jannh@google.com, kpsingh@google.com, linux-kernel@vger.kernel.org, mingo@redhat.com, tglx@linutronix.de, x86@kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,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=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 Hi Reinette, On Tue, Dec 6, 2022 at 7:57 PM Reinette Chatre wrote: > On 11/29/2022 3:10 AM, Peter Newman wrote: > > Removing a CTRL_MON or MON group directory moves all tasks to the parent > > group. The rmdir implementation therefore interrupts any running > > tasks which were in the deleted group to update their CLOSID/RMID to > > those of the parent. > > > > The rmdir operation iterates over all tasks in the deleted group while > > read-locking the tasklist_lock to ensure that no newly-created child > > tasks remain in the deleted group. > > The above describes the current behavior. This is great context. What > follows in the changelog is a description of different fixes. This is > unexpected because there is no description of a problem with the current > behavior. > > Could you please describe the problem with the current implementation? Next > you could state the two possible solutions and then I think the reader would > be ready to parse what is written below. Ok > > Calling task_call_func() to perform > > the updates on every task in the deleted group, similar to the recent > > fix in __rdtgroup_move_task(), would result in a much longer > > tasklist_lock critical section. > > > I so still think it would help to state that this additional locking > does not help to provide precise CPU mask. Especially since > the next paragraph may be interpreted that a precise CPU mask > is lost by giving up the additional locking. Yes, that's a very good point, and I'm afraid I've already made you reiterate it once before. I will make sure to work it into the next revision. -Peter