Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp723806ybl; Thu, 12 Dec 2019 04:00:20 -0800 (PST) X-Google-Smtp-Source: APXvYqwntsjW9lBxmnnYQfjNH9iBeRJKoRQtFNTtEKZI02SJqtnZLipJNSmukFBgt37usJw+EwO8 X-Received: by 2002:a05:6830:1599:: with SMTP id i25mr7568063otr.205.1576152020035; Thu, 12 Dec 2019 04:00:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576152020; cv=none; d=google.com; s=arc-20160816; b=uNtQT1yCaz3BJNv6bstSGaskTTIfIm4bCjIzxDQK/Pr+5MVQqQSzUDF/F9fcz9unty t+r35/QyZHFIDts/qBbkEyDMtufOOxHisPgUO7zVVrKMn1U3Fn0suW5ORnFMMLGFosy6 L5IhHxJTZ3M74ZYqDtCyykFZpV7lcYfZbLyiQV2ID1eDZ7xdWiPsn22Vib6+QHhLOfCZ q+RUmKjCyiZ9bDlZIieRDLUpJHsjqKjq4U1X6xmcHL43mU1iLz+U0qbirW2oUQPF8yBw +A8uUb4bORszgnNSHk89OMzc8MWWgo2nmaTEKhr9qb8lhMU7rjmzo7+BKaIsBXkWr8/c kIdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=I0oJIoiBw1HAy8IVFrtDmR1/QvgDH0c+i1iG0jotMWY=; b=CB+5/SejYs7XDATqNnTXb8ZFAYzW1USl1G7kq0if6dojv2pNLN1I40Y4Fm9dRLkgIR fNivhGsjkMsRLNEIueBxgZLuutuEi113TcMUbUIxHku40LweJ/U7m4s0Gl3ZbtNnIzbx 3Zn05ytZ0AuD9yx/78bGCG0To6SB7BHgwEFGmQ2d2DDGG0F1z7+Uxdf6TIWq+fPfCaum 8KiSYyn+ss8qbIOrDhLAMCRR+jIPgWNUMJgXb4j8jogGR6V7W6ncTbxoV0OoMhGw6yLS SZU5QM3OKOsBK0LDSuHAbZjg2tj9kfd7LXdLPHDNenqk7Hede4ffIjTri1er5ia/nMCG vaNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TowDe05q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q127si2981684oic.99.2019.12.12.04.00.06; Thu, 12 Dec 2019 04:00:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TowDe05q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729069AbfLLL61 (ORCPT + 99 others); Thu, 12 Dec 2019 06:58:27 -0500 Received: from mail-il1-f195.google.com ([209.85.166.195]:36525 "EHLO mail-il1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726492AbfLLL61 (ORCPT ); Thu, 12 Dec 2019 06:58:27 -0500 Received: by mail-il1-f195.google.com with SMTP id b15so1799930iln.3 for ; Thu, 12 Dec 2019 03:58:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=I0oJIoiBw1HAy8IVFrtDmR1/QvgDH0c+i1iG0jotMWY=; b=TowDe05qaCE8skMSSOiYaLK3n4N615X+XiAblLD7alPmNfNN/4tfvWd7nRHBH+FG/r wti1+aF7E/uCM6SrmXX+b2ovBxdxnn7M2I2kt/gpqKKZwT0OtyxXBhO5CNUf7pnGyMJR KXLMeo9snaPYjH44eJnKrRUWILzlZqSq1guNPyVggaIozy5TW37bXd55Ez41VngO9tVc fXfdagD8fvPkUll6GuxNc5wvfGRgMdHjxf4jp1HOzaQapNgRRepplgK2Fwnh8bRnm7L1 /4USD6DTwJBF6LcrLSIoIwiKclDQRtW0TfrBQzKaPyr2j5bEuht+3f02IDMYc8TqhVpS YqBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=I0oJIoiBw1HAy8IVFrtDmR1/QvgDH0c+i1iG0jotMWY=; b=SLw7vg6IChWhlkKaLyT7vjFfnFnkmHOWg4cRiSJfpy0tpvWd0eqfjN8cX5aXY0SUmc XG3ssB7ENo5mrhdkIruBQqyJHCNngqc5NUvJUZm6XNy+u/Pyx82tKfCXiCt1c0uwrR4h UskSoSmUPlO1OLE5eXl0pOffgUktEng4+QgAzOY44g/ZPR32MI4GhU46iGKzY8Wnyu4O 2LAB9lZN95/XJksKIkdixLexWCnDGWpYj1hwA84sNJrwkouO3umWxrEah7jHtePu8rES aYcBoPfpbHsoa1WUFvUyNxv2wri0xo6GmofxR0boyvilzQQC75q0qdqbu67oI3/6ILsb irzw== X-Gm-Message-State: APjAAAXh/MuDSOhwdZ5g6eNU0195rIPAVe8MyBepn3ETJ4cIZq7pRBUq ZOThOTG8EwRYQLqktXB5xuMvBO/n5yKqIq1xerM= X-Received: by 2002:a92:d7cd:: with SMTP id g13mr7995684ilq.300.1576151906685; Thu, 12 Dec 2019 03:58:26 -0800 (PST) MIME-Version: 1.0 References: <20191208041318.3702-1-cai@lca.pw> In-Reply-To: From: Chen Yu Date: Thu, 12 Dec 2019 19:58:15 +0800 Message-ID: Subject: Re: [PATCH] x86/resctrl: fix an imbalance in domain_remove_cpu To: Qian Cai Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Reinette Chatre , Fenghua Yu , "H. Peter Anvin" , John Stultz , sboyd@kernel.org, Tony Luck , tj@kernel.org, "the arch/x86 maintainers" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 11, 2019 at 2:06 AM Qian Cai wrote: > > Here it only check L3, so it will skip correctly for L3DATA and L3CODE > to not call cancel_delayed_work(). Recalled the above that only L3 will > have r->capable set. > > if (r == &rdt_resources_all[RDT_RESOURCE_L3]) { > if (is_mbm_enabled() && cpu == d->mbm_work_cpu) { > cancel_delayed_work(&d->mbm_over); > > Hence, r->mon_capable check seems redundant here. > I see. Thanks for explaining. -- thanks, Ryan