Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp44596lqp; Thu, 4 Apr 2024 06:49:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdBMHRJuTPyG6pkvWE8EgnU4cXZcPEGYPCjF45xSlJz5jZZZtFSuSSZwG4kV6r+Ps6eDKoc7jp98aCficIbWnhz8OKj7oGfUkDcIVguw== X-Google-Smtp-Source: AGHT+IHf01uM8c3qwM4B9iBQu0JUhTbkwOgYiqUHqxutX+V1dU8lqRy37/094orhip0xICtL0V3R X-Received: by 2002:a9d:480f:0:b0:6e6:b28b:c408 with SMTP id c15-20020a9d480f000000b006e6b28bc408mr2364747otf.9.1712238544028; Thu, 04 Apr 2024 06:49:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712238543; cv=pass; d=google.com; s=arc-20160816; b=T7dpnUnhAGZefayk1YLIWCy0Z/cpXb04ewWEbneVxeqf2e88WogimwJaRyhpJoBXxv NKClNVAnqbJ1ri6QRxbrQ3RawKamd2pMaWJXyxwJYWHqo9/TwyPuSum1cmXMK3NqGLdY MWYaThjWMenYfK5xuNfxGUeryvN8mjjZqGBEqgbAvsIzX+SBvDX7k0jhg9KiN05PYGHR l06/DEMQkv7mzJfkxGypNbIvru2GtMFftZi1WdXlUqCPyGTip+I2ik26PsLwkSj0CLPr ZqYnt20al6ZDjAzxHLbWmI/6pnMgZuOuyfBXO6770x0gMSi9v7JlSRCiOmK5P2VFTxQd r4+w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Tnsuyx7KcBv6XFJZWKQU2kMyMK1EfNz6Nm3ZEf6Chos=; fh=poKe6GciFQF9x146sxSMYSKKws+3e4Cqcu3Udn5FQq4=; b=WlU6OnAAnFXwmO0ma6FKej9VVoJfHzxe8WO7KozSvPo0J8LU9fvtwbLa0j2wjaxEz1 xLTr2IBL2ADc6XmD6hqmIDbhm2T00QYE5qhewdV2tgxOZu71JIaE8BV864BRUNOmTKDY uOPy8mNQkK4dTY0D9HkEYDz+uiE8BRDWCc51IYO8TB+tvV/VFGwUpAmcZpRUMJJoZLIV tzmbsPFtRy9td/ec9OlfZeV/AGb3aBpVmQ7sg9UweS9wZr79YvLIaFbn8Cg04lwWg2nb AHy3rCIU7+jgtVr3yXjm6zMMA8w8Asu/60L9KcaqKqQ5UZ+jV9D91msK90jBcFuKcpAP qcOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JLrMlvES; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-131531-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131531-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ow21-20020a05620a821500b0078a13742bb3si15957364qkn.516.2024.04.04.06.49.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 06:49:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131531-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JLrMlvES; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-131531-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131531-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DEC071C2794B for ; Thu, 4 Apr 2024 13:48:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B40112882C; Thu, 4 Apr 2024 13:48:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="JLrMlvES" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 92CEE127B4E for ; Thu, 4 Apr 2024 13:48:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712238493; cv=none; b=TM8TKfILlGkcaIHyNeWkSNrLNZkzJJEj44QFrNreeolh9y7vbnXunGZJs2U0j8WflyAWNZwvAjaxB31DcjABCrzqx0oXPHWtqNmcluPtxNlgSjaKtcFh6fZAcH/BZUPS845JBIrrzAYW8IDu6NnUHBGom8ct+uED7Asvj/uIuH4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712238493; c=relaxed/simple; bh=4a0W+I+wPugroMr8YypZAJZzfe7982eYCpHy1dSeuTk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=UchV3Tw/tN3dmT9NtdwsvpGLesunzV68GOw/zAJdsWi6LZs4s0TgGexc1f1GNkgANQUY76MU9U4gCM5V2s8izTVGrh43kpXtl0MNY3BG+7ylNlYOU1TI6qKPcCfDoIBUk8yMyD3upVTsSnezFNi5LJ4wEexwoG6sBaqy+W2YsQg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=JLrMlvES; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712238489; 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=Tnsuyx7KcBv6XFJZWKQU2kMyMK1EfNz6Nm3ZEf6Chos=; b=JLrMlvESbgQ6C48Ir4VpSUZMDHRRMozwEj14q88yB8kCNXzu8WkCo69xlGtrJHN15oMA51 5ubrvaD28TxcAE8/qBprWEZhx2op6e8XeIEIeKEiNkdikC6x52ts6BMpjVVEEEqwp4qKny mgV5oKWw9j0ZPuiymkUfYlbln1pemrY= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-373-vX8sI94qMmSFL_xh7rpwBQ-1; Thu, 04 Apr 2024 09:48:06 -0400 X-MC-Unique: vX8sI94qMmSFL_xh7rpwBQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 296BA3C0F43E; Thu, 4 Apr 2024 13:48:05 +0000 (UTC) Received: from llong.com (unknown [10.22.9.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id 42B783C54; Thu, 4 Apr 2024 13:48:03 +0000 (UTC) From: Waiman Long To: Tejun Heo , Zefan Li , Johannes Weiner , Thomas Gleixner , Peter Zijlstra , "Rafael J. Wysocki" , Len Brown , Pavel Machek , Shuah Khan Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-pm@vger.kernel.org, linux-kselftest@vger.kernel.org, Frederic Weisbecker , "Paul E. McKenney" , Ingo Molnar , Valentin Schneider , Anna-Maria Behnsen , Alex Shi , Vincent Guittot , =?UTF-8?q?Michal=20Koutn=C3=BD?= , Waiman Long Subject: [PATCH v2 0/2] cgroup/cpuset: Make cpuset hotplug processing synchronous Date: Thu, 4 Apr 2024 09:47:47 -0400 Message-Id: <20240404134749.2857852-1-longman@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 v2: - Found that rebuild_sched_domains() has external callers, revert its change and introduce rebuild_sched_domains_cpuslocked() instead. As discussed in the LKML thread [1], the asynchronous nature of cpuset hotplug handling code is causing problem with RCU testing. With recent changes in the way locking is being handled in the cpuset code, it is now possible to make the cpuset hotplug code synchronous again without major changes. This series enables the hotplug code to call directly into cpuset hotplug core without indirection with the exception of the special case of v1 cpuset becoming empty still being handled indirectly with workqueue. A new simple test case was also written to test this special v1 cpuset case. The test_cpuset_prs.sh script was also run with LOCKDEP on to verify that there is no regression. [1] https://lore.kernel.org/lkml/ZgYikMb5kZ7rxPp6@slm.duckdns.org/ Waiman Long (2): cgroup/cpuset: Make cpuset hotplug processing synchronous cgroup/cpuset: Add test_cpuset_v1_hp.sh include/linux/cpuset.h | 3 - kernel/cgroup/cpuset.c | 141 +++++++----------- kernel/cpu.c | 48 ------ kernel/power/process.c | 2 - tools/testing/selftests/cgroup/Makefile | 2 +- .../selftests/cgroup/test_cpuset_v1_hp.sh | 46 ++++++ 6 files changed, 103 insertions(+), 139 deletions(-) create mode 100755 tools/testing/selftests/cgroup/test_cpuset_v1_hp.sh -- 2.39.3