Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2812960lqo; Tue, 14 May 2024 09:50:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmU27aXC55ycYRkintEsv9Fpbj0uGrPPDa3n3rCbZX/9ykWVTmCIlhUH2T3BQ3Ypu43cHp0ehdYrRX8DG684Zu6uz5mTMw7Atg3e/BFg== X-Google-Smtp-Source: AGHT+IHV+E5Qy++mkEeQFasnSgQsocTn5N08OH23elCkylV65O/DP0ceFWH6XpNVLE0yWkfaDVdN X-Received: by 2002:a05:6a20:729b:b0:1ad:9adf:febf with SMTP id adf61e73a8af0-1afde120efcmr14646463637.31.1715705434979; Tue, 14 May 2024 09:50:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715705434; cv=pass; d=google.com; s=arc-20160816; b=AT1Wej1MO6OwAgolnb/8luM/vrhSwK9TQ4KQSlpNQhadztvKuLrI4aCXdmJFh8986B UJ7tslxq1TeoAtU03cyfDE3beBbwtw+M8mm7XF1gLhHqSNssOu1P2mFoO/1TSMJN3Tp+ RmhN+xenETc4tAKqnBkNf5dEI9UMZrds0VHNWYbQvn7kD7jCs5v+QB1sRizaGEcoF8yJ 8ONjFmyCecnT7mywof271EzmQVlmmItzjWVXc6a0PyRzbVCAX0e48hDce3hW7jp3F8I1 jjDAuMNNYC5zfk/CL8dxOgXBkjyxVsESE/z2/On3/9SkUv15YaglQRbFEqcU9K8hQWdX QCHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=14nqunY9nKXcj2uKcOEFKBKbp+gncL4/qrREVkofVOU=; fh=Z4JFQr4FStxYugl5DsNUMC7e3AKn3qe3tC1iS+5kApw=; b=Gw30jLqGl5YW8d/gN6Mh1UJvtOz6/03KvNerbb2SYOg0NeKXaugTY1llKTFxXb3aFb AGrTF68uNO1C7C9AYQYPUuLVzEFD1qEWD/wj3kWGktMspW437a0wkl8VEmqvcptCn0HU DUgXwUjICT+ur+GRRBNT6IL+22FBszJ4TBWt5zXmev4HeAJqnEzv3ScrgiXSy/OM3mhw XlbJkbWOdkew82yrJURY3ROW7/W/iwLh6Un/xoX3MMbs9w4gSDm4wTl7PR3Pqyv+3eHP MQYpwLnpAR9uQ6XAlLXw4j3IxOqnDGY4ZJAkYZB2WLPnvUJgbNx9N9VdRuwvs5r0+6jp MTdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="bC4/1VzI"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-178967-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178967-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2aeefe7si11645240b3a.190.2024.05.14.09.50.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 09:50:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178967-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="bC4/1VzI"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-178967-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178967-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1D8CEB216E6 for ; Tue, 14 May 2024 16:50:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C9EC17F393; Tue, 14 May 2024 16:50:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bC4/1VzI" Received: from mail-il1-f182.google.com (mail-il1-f182.google.com [209.85.166.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FBBDF501; Tue, 14 May 2024 16:50:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715705417; cv=none; b=bHAMp2C1sWF+qNb++cJV4ZB5d1+eoNcxNpwzZFpw13mKKM/fHLu/trFuwtY4Q2LFqCGFcoE8AlctyjzrKLAdKFQ8WqIcdxmgV/3PmEhBmajhFDPLQAZTMOjUbBoHQCSsgoN+8TCNw2q/sbkUoFOfTYLJkbAIZuGe3rRsqMQDfDU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715705417; c=relaxed/simple; bh=9gvc+eV5vJLN59KuAi5BPmoIZxH5FUrEhj3EWQbcIc4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=U9rFBm7/HlRubwRTaCnCT1QECp3FJ3yCu4PRXhtaQVwmJ0kPKaZa7eHFi9kp73LTpf4Xpy1+oaxb5fQcCHkEBK3u3JuJ+BAHAa36xN1fkpPpCIpdOlRnFzysJ/Bxndl4NDqMGWjWz2U9CZGt4Q5cU7HOsvnYd+npSHtdw8MLsAQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bC4/1VzI; arc=none smtp.client-ip=209.85.166.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-il1-f182.google.com with SMTP id e9e14a558f8ab-36db3304053so2280625ab.2; Tue, 14 May 2024 09:50:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715705415; x=1716310215; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=14nqunY9nKXcj2uKcOEFKBKbp+gncL4/qrREVkofVOU=; b=bC4/1VzIGL0jATHOtT5W2PLOPcZnmxKsiJDZ7IIELti6nGAEi9lvIt/4PT87EMPpsG OklBCO8CytAaMzXwA2ReTN+m33le9exq1zq1NkDiqgOt2fWPfrb5M41X4Hj9D9jmLO/D NGgxdl+X0nh/pn2ueuZpbKKFUh00FjNQy7BZdyhK7NweYI0n7kOueYjCm+NMoEOIudIj zWYcxJ4xGzawHOMsJ6TCuJAAE7xFRN4ckoeOXJ9ATGty9eOO7+0eq1jEvrMpGNFBRwhC MfhhVhrerU7GLdRP5Hm3jIyTf9CTH8kglmPXlaUwFTyDWRsbhGt2nhJod/t+AMa5Bcnx 8MRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715705415; x=1716310215; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=14nqunY9nKXcj2uKcOEFKBKbp+gncL4/qrREVkofVOU=; b=jaaWNyLOfqgnIM7nPta3yH8mIggfVL8gyMTMYjXeEvuyQzfRVGTaUcR7w/Tw5yAJJ/ alczHH8FlbteCpyWa+gC8yY/JZYu4NRF6IyqDQvsIAo2Qkbi7fZytcdwqipGYbTHTfci xln9wfJyYqCg9yNRLyazvx/2W9w0BwCsfONlSfTJwUsIbRflVa5CwkfJc24SA/AakjPZ ShKsHwtfSMTLUYpktHECig4gPpH5yQmV3jL0DaBp+AAS7hOHji1ThtN51/MlsJhClfsr FC3ToOscQUxZAwHeS66xQpfkDzy5W2eYjVeYFwL6agggYrCZijo40/xpxTWAQYkiEREC v4JQ== X-Forwarded-Encrypted: i=1; AJvYcCXzSHW5GdbbFcNAH7DDZUW17zwhKWThTJjhM/mFViZNJdK7eCrWf8cdVbXcj9fxcWkFOKrjGyfFisyvIr/z+nDriUwrMCEWtBh8mKfjnlK//Y1iSq0KjQYF4AMuT/nnS8Kv7ZVLkw== X-Gm-Message-State: AOJu0YwqAXqORwyJ10SB//WzaNSytOy2PSdR4Er3A3i52Wc9XrCdRIyI wy8k0WhHKJNmnYUdYAm9H1lfVUO8aTcWdaExfhFmSAeUff+QFTrM X-Received: by 2002:a05:6e02:174b:b0:36a:1104:2d6e with SMTP id e9e14a558f8ab-36cc14681bamr170385425ab.1.1715705415284; Tue, 14 May 2024 09:50:15 -0700 (PDT) Received: from localhost (dhcp-141-239-159-203.hawaiiantel.net. [141.239.159.203]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-634105e103dsm8490408a12.57.2024.05.14.09.50.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 09:50:14 -0700 (PDT) Sender: Tejun Heo Date: Tue, 14 May 2024 06:50:13 -1000 From: Tejun Heo To: Waiman Long Cc: Yury Norov , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Paul E. McKenney" , "Rafael J. Wysocki" , Anna-Maria Behnsen , Ben Segall , Daniel Bristot de Oliveira , Dietmar Eggemann , Frederic Weisbecker , Imran Khan , Ingo Molnar , Johannes Weiner , Juri Lelli , Leonardo Bras , Mel Gorman , Peter Zijlstra , Rik van Riel , Steven Rostedt , Thomas Gleixner , Valentin Schneider , Vincent Guittot , Zefan Li , cgroups@vger.kernel.org Subject: Re: [PATCH 5/6] cgroup/cpuset: optimize cpuset_mems_allowed_intersects() Message-ID: References: <20240513220146.1461457-1-yury.norov@gmail.com> <20240513220146.1461457-6-yury.norov@gmail.com> <911ca229-4849-4fd2-8ae8-5ca653d8a5e3@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <911ca229-4849-4fd2-8ae8-5ca653d8a5e3@redhat.com> On Tue, May 14, 2024 at 12:47:59PM -0400, Waiman Long wrote: > > diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c > > index 4237c8748715..47ed206d4890 100644 > > --- a/kernel/cgroup/cpuset.c > > +++ b/kernel/cgroup/cpuset.c > > @@ -5010,6 +5010,9 @@ EXPORT_SYMBOL_GPL(cpuset_mem_spread_node); > > int cpuset_mems_allowed_intersects(const struct task_struct *tsk1, > > const struct task_struct *tsk2) > > { > > + if (tsk1 == tsk2) > > + return 1; > > + > > return nodes_intersects(tsk1->mems_allowed, tsk2->mems_allowed); > > } > Reviewed-by: Waiman Long I'm not sure this is worth the added code. Thanks. -- tejun