Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2775331lqz; Wed, 3 Apr 2024 08:17:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdg1Zs0Zx6w0BSqDpaSFrBP25nhceElvxqxoz46G1xC66FuLMylozt00D+ZtyiTg1aDHd2wpkj+v4h9njGS6i83MVx5PXlnPhmwQXLsw== X-Google-Smtp-Source: AGHT+IH+E8w/34sCAfqfBronepMCLFdrXta2dmBbmLtAJ6m4vXdqaikTrtMmRlGb1yUl6HdGiOrh X-Received: by 2002:a05:6a00:1490:b0:6e5:43b5:953b with SMTP id v16-20020a056a00149000b006e543b5953bmr15960023pfu.14.1712157423580; Wed, 03 Apr 2024 08:17:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712157423; cv=pass; d=google.com; s=arc-20160816; b=WqBaSC3kUnh+KAn+n3/JgirzpBsXBJv2nG8irTcTKav/qCa9u+pkTK+bVIL6OBGPlH sZ8e6RbdsyJjOwFDLQ3X6ID8a35QFqMUELrq0GkXM7A6LOeSB8cEppUD4/lepluMdPjK 7aTEMhiFVbnxdFALoHDLgq2+9IDcLCRpSLcPnOm8e6wy2nh0e5+OQfqbnNDeeSbwdj09 Fxr918sfHkkT1b1HGj7NBrNusOHkGPW2Ta5zJyplGJCfrJJjN0hxhRXqx/XQI/0WInDP Qu5abor1ys5ueSD3BylKjnrtmWliCo/EjVIgZ4KuzhLiX0hZvY/+sgYbV2q/l2yPnMW3 wS6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=vcTH6u0Rlg+BVw+a7Jg/5/hidJ0AE0bMPe3NIsD6EkA=; fh=WlhYixZxhP/0QzTy8x7ZkK6W/UHxaUDyNakRcgQRBvs=; b=DvZDVJjlvnP4TiIwIp+gWutIvy5SpqIjAfOReNqXnVXOb9n32WW7VVXgyYHBNb3aTY 0sw/7poL9i8DvYBY+DgOdWZ8PteukgQO46RtaT3ReWDHRQvWVOFZeascMVNWj+812Udv WYYIsAIBkI3l2n7Qotwfu07jpCaK0AmtjCzVRSpYHpmel2EYUf2SGy/AWIOzJBbMKbeW m6Qp56n8lrQLy/nVNiw2t5bgiP3ufA2fagl/kwij1jc1DmVRrG+MzEAO23tmwUmCZyHo cmc4MiAwS7zIsWIFKySZy75sX2cBYCV7tEmNmTfkpZBB4T6XxDwgSXFaOR6pQ+IGm69P QWpg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Wt7d7/um"; 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-130059-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130059-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b11-20020a63d80b000000b005e83b6752bdsi12980339pgh.269.2024.04.03.08.17.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 08:17:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130059-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Wt7d7/um"; 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-130059-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130059-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id F3B862825C6 for ; Wed, 3 Apr 2024 15:13:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B33114A603; Wed, 3 Apr 2024 15:10:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Wt7d7/um" 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 C6FCA14A4F4 for ; Wed, 3 Apr 2024 15:10:47 +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=1712157049; cv=none; b=Ex/XpdUtyksOlnuvnGDGddPb67L1/ICZJSviDlHnnxZaWluKNY8ztAceAaqkuSLLzVMmVinHPhfmvqOcmHFGnGRIOdWrbUG+Khe6bTs/dXnYt1zb3B/iL1rQCiuR/TTnYHMPCTIuG0lUEj2Gcyqsgg2CgLcoSPdgVjKZQVnbZwc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712157049; c=relaxed/simple; bh=anwzlEybqYMGwaD+F9GCbHmbnWkGkyE/W+MYH3vfNAU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=pQsTlNVvtpdCQdzEWYUne4scQbpfxv9p2rwsjVgqbNzAAMdCqEq13mq+2cl10jNLzhJlbm8GTPQaKmUxJfaRGhHk/7w1wussMtJrhfeiqP0FQwd0piNKNcRCQ9hEXaCkHEmIl382BB67GKpXarClMfyNCTThGJASEYMlVi93eQE= 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=Wt7d7/um; 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=1712157046; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vcTH6u0Rlg+BVw+a7Jg/5/hidJ0AE0bMPe3NIsD6EkA=; b=Wt7d7/umycXGstBBPBVhAe9noK9/M8FO3ozLaoQ77UDpujtl1vBolIgSBu2SJxaLZb8l1Z W7XcRoClkKPtCqvzFrc9WBL6fZ/U7wS8Sa4KkXqoVBVSdNxY0wi2TjqewmrvX3lWB0MzPN v+otOH5wP24NSujZPq7VS4ITSkFBp9o= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-453-5XXZIlPLMNmZ6TxIZUFe7A-1; Wed, 03 Apr 2024 11:10:40 -0400 X-MC-Unique: 5XXZIlPLMNmZ6TxIZUFe7A-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (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 E328A80B1E3; Wed, 3 Apr 2024 15:10:38 +0000 (UTC) Received: from [10.22.33.218] (unknown [10.22.33.218]) by smtp.corp.redhat.com (Postfix) with ESMTP id 80B2B2166B31; Wed, 3 Apr 2024 15:10:37 +0000 (UTC) Message-ID: Date: Wed, 3 Apr 2024 11:10:37 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] cgroup/cpuset: Make cpuset hotplug processing synchronous Content-Language: en-US To: =?UTF-8?Q?Michal_Koutn=C3=BD?= Cc: Valentin Schneider , Tejun Heo , Zefan Li , Johannes Weiner , Thomas Gleixner , Peter Zijlstra , "Rafael J. Wysocki" , Len Brown , Pavel Machek , Shuah Khan , 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 , Anna-Maria Behnsen , Alex Shi , Vincent Guittot , Barry Song References: <20240401145858.2656598-1-longman@redhat.com> <20240401145858.2656598-2-longman@redhat.com> <548efd52-e45f-41fa-a477-bc5112d7b00c@redhat.com> <7e62b37d-6c9c-4e55-a01a-175695475cb5@redhat.com> <620d1b70-cfbc-4b76-ad04-b3be559afd56@redhat.com> From: Waiman Long In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 On 4/3/24 10:56, Michal Koutný wrote: > On Wed, Apr 03, 2024 at 10:47:33AM -0400, Waiman Long wrote: >> should be rare these days as it will only apply in the case of cgroup >> v1 under certain condtion, > Could the migration be simply omitted it those special cases? > > (Tasks remain in cpusets with empty cpusets -- that already happens in > with the current patch before workqueue is dispatched.) The tasks should not be runnable if there is no CPUs left in their v1 cpuset. Migrating them to a parent with runnable CPUs is the current way which I don't want to break. Alternatively, we could force it to fall back to cgroup v2 behavior using the CPUs in their parent cpuset. Cheers, Longman > > Michal