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 D1852C05027 for ; Thu, 2 Feb 2023 21:06:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232740AbjBBVGV (ORCPT ); Thu, 2 Feb 2023 16:06:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231679AbjBBVGN (ORCPT ); Thu, 2 Feb 2023 16:06:13 -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 38F2B8395B for ; Thu, 2 Feb 2023 13:05:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675371920; 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=WEHQNucTuGpLdaQhxf42z+oDGAmuQAok38hbITp7osg=; b=MVuNhkqw8wUxTa6R7Wp3ziLfgjd8OaN23xcD8+OYAlIVgizJMvbtNVpCRaJyQcx3aBz3wT EqV8mUMKd1z7w6Q5o6cshKl+fLg+XxZBpsfDRtgWHaqHQ1qTfv2ROmNEEnbViQ6Lxysu2l 6fkq9cSPQTrAdDpERhy/uTtjkZVPTEM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-390-RO-UAXgBO3qOXis0u0hiwg-1; Thu, 02 Feb 2023 16:05:16 -0500 X-MC-Unique: RO-UAXgBO3qOXis0u0hiwg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AF83A101B44E; Thu, 2 Feb 2023 21:05:15 +0000 (UTC) Received: from [10.22.8.157] (unknown [10.22.8.157]) by smtp.corp.redhat.com (Postfix) with ESMTP id 187F4140EBF6; Thu, 2 Feb 2023 21:05:15 +0000 (UTC) Message-ID: <8787b5f7-9822-e49b-0357-d0ce224ca920@redhat.com> Date: Thu, 2 Feb 2023 16:05:14 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH 1/2] cpuset: Fix cpuset_cpus_allowed() to not filter offline CPUs Content-Language: en-US From: Waiman Long To: Tejun Heo Cc: Peter Zijlstra , Will Deacon , linux-kernel@vger.kernel.org, kernel-team@android.com, Zefan Li , Johannes Weiner , cgroups@vger.kernel.org References: <20230131221719.3176-1-will@kernel.org> <20230131221719.3176-2-will@kernel.org> <6b068916-5e1b-a943-1aad-554964d8b746@redhat.com> <2bc730db-704d-080b-6869-02f6d0035fad@redhat.com> <75de91db-d3bc-0c0e-6199-ef00591e8878@redhat.com> In-Reply-To: <75de91db-d3bc-0c0e-6199-ef00591e8878@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/2/23 15:53, Waiman Long wrote: > > On 2/2/23 15:48, Tejun Heo wrote: >> On Thu, Feb 02, 2023 at 03:46:02PM -0500, Waiman Long wrote: >>>>> I will work on a patchset to do that as a counter offer. >>>> We will need a small and simple patch for /urgent, or I will need to >>>> revert all your patches -- your call. >>>> >>>> I also don't tihnk you fully appreciate the ramifications of >>>> task_cpu_possible_mask(), cpuset currently gets that quite wrong. >>> OK, I don't realize the urgency of that. If it is that urgent, I >>> will have >>> no objection to get it in for now. We can improve it later on. So >>> are you >>> planning to get it into the current 6.2 rc or 6.3? >>> >>> Tejun, are you OK with that as you are the cgroup maintainer? >> Yeah, gotta fix the regression but is there currently a solution >> which fixes >> the regression but doesn't further break other stuff? > > I believe there is a better way to do that, but it will need more time > to flex out. Since cpuset_cpus_allowed() is only used by > kernel/sched/core.c, Peter will be responsible if it somehow breaks > other stuff. Maybe my cpuset patch that don't update task's cpumask on cpu offline event can help. However, I don't know the exact scenario where the regression happen, so it may not. Cheers, Longman