Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3E45C61DA4 for ; Thu, 2 Feb 2023 03:19:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230054AbjBBDTP (ORCPT ); Wed, 1 Feb 2023 22:19:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbjBBDTL (ORCPT ); Wed, 1 Feb 2023 22:19:11 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8384E29E03 for ; Wed, 1 Feb 2023 19:18:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675307905; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=TnLYuETykZ3l9f+iMHZlyv3/ZWGHek1M/oMz9w9vUAU=; b=FLe0Q682C5w/7z1R29D42kDpli5XxPSVxJqHm2lhNC0cGLbGuBaCy/Rf0fn7gNdE5SMF8D 4xDnYJvdmAhItDxOPcpd64p6BAEmg4V0o2CWxNdbKVjXjqU/8wxL8aBgXJ80PThLZ47gDJ mE3pvGayGnEIQDTu6ufsLxbpS1EpcWM= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-626-w2-jySeQPwqs4FzipE0c8w-1; Wed, 01 Feb 2023 22:18:20 -0500 X-MC-Unique: w2-jySeQPwqs4FzipE0c8w-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2CAD538149AC; Thu, 2 Feb 2023 03:18:20 +0000 (UTC) Received: from llong.com (unknown [10.22.32.115]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9AC252026D4B; Thu, 2 Feb 2023 03:18:19 +0000 (UTC) From: Waiman Long To: Tejun Heo , Zefan Li , Johannes Weiner , Will Deacon , Peter Zijlstra Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, kernel-team@android.com, Waiman Long Subject: [PATCH 0/2] cgroup/cpuset: Make hotplug code more efficient Date: Wed, 1 Feb 2023 22:17:47 -0500 Message-Id: <20230202031749.118146-1-longman@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This small patch series makes the cpuset hotplug a bit more efficient by eliminating unnecessary task iteration and cpu/node masks update when an hotplug event (online/offline) happens. These patches can also avoid the known problem of missing a previously gone offline cpu in v1 cpuset after a single cpu offline and online sequence. Waiman Long (2): cgroup/cpuset: Skip task update if hotplug doesn't affect current cpuset cgroup/cpuset: Don't update tasks' cpumasks for cpu offline events kernel/cgroup/cpuset.c | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) -- 2.31.1