Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp710815rwb; Thu, 22 Sep 2022 05:36:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5f/587t47Z4ZfV9NiSYp7jBFqs3UTT2lOfvn6tHRBxbB3j3ZJXusEoWYXu4HOljB98bIvO X-Received: by 2002:a17:907:94c6:b0:77d:7ad3:d065 with SMTP id dn6-20020a17090794c600b0077d7ad3d065mr2627193ejc.149.1663850189926; Thu, 22 Sep 2022 05:36:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663850189; cv=none; d=google.com; s=arc-20160816; b=QYABy/T+NiXfBtBPpBGycwyydSz2ESUy/Mw80PRgCuhjJt4+83Hw1hg9R3xE+ndS4f Jbq7/DOHegvrq5aDP8/+nMzXCvUSYHRxLv3PQHO9QUdxfWcwJzDuTDippXgK8NqULkbt qW0+zKUdvNmNKl/LiSBcpsbHkW4G3VPXIQk0IilQCfoahFTc0XKuigboKbB1XpS2yHju dyikbWMok//ZPS7YJBsZ9LBXA1yGQFi6zFWiT9XsWhhaF4lOVPALHdL9fJwCBiIeP2KD kEVcNY0bvxlWz1NjJxIlc5FasE7TbMQKzVnI7YFqujFQlQ0JE0U7WP1ykLA1+CbKSw27 i4xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=oXHxih+IbJlBpItUiUsNTieYvbvInNzPCfL2NlPaMU8=; b=u2Nxm5Ku5qZcGAT6eazWKQm/np8uTOxlMgcG1zb/sjtlDw76kV/h8g0OozM4J2+9mL lC6wAe0OYcaCpTOk2t4rDzO8rbdVc0LXYWoCGzsEG/tRNQ7RkGndhnHJfWlOqjpmGfQp 04tCJNuwKJGNWUKQQ0JJI66oQGzDLh26nb26iHTyhAtnUCErXvB0dob2isY64OOtbhmL L83LtUeqPJaWj2cnLNksLorDzRUM0MAGLkl8fPfSTDTzdK8OQMAkN1nmESQ8bf7CnuFj iF2yRwGqhzcVKZpYuJL5Ib/owvSt93QLzahxH8BkR/5HUNhu0dF60K+1PdB01pp2441Y UmSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZWQ7Z9fA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y11-20020a056402270b00b0044f0dc2cbd6si6124815edd.378.2022.09.22.05.36.04; Thu, 22 Sep 2022 05:36:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZWQ7Z9fA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230175AbiIVL47 (ORCPT + 99 others); Thu, 22 Sep 2022 07:56:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229766AbiIVL46 (ORCPT ); Thu, 22 Sep 2022 07:56:58 -0400 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 67D11A1D66 for ; Thu, 22 Sep 2022 04:56:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1663847816; 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=oXHxih+IbJlBpItUiUsNTieYvbvInNzPCfL2NlPaMU8=; b=ZWQ7Z9fAMGJkS7tAA9YCM/sLa7lVluO+jyMlyLaqYNeKYUS4z5dRppzN/lAjxYoRQl+bgz 6+PddmZGlOI9X/LUOH7xWHTjk0dqvPhLxhGhJUovuSGhs7cQiGkhc916y3VVIb1/lU4H6J 8txlCHXuppWqkQ6eIFy97V+7pCNLkVk= 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-572-DdNE36QCNrOPn7uiAkMj1Q-1; Thu, 22 Sep 2022 07:56:49 -0400 X-MC-Unique: DdNE36QCNrOPn7uiAkMj1Q-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 AEFAA101E14E; Thu, 22 Sep 2022 11:56:48 +0000 (UTC) Received: from [10.22.33.6] (unknown [10.22.33.6]) by smtp.corp.redhat.com (Postfix) with ESMTP id 71F60140EBF5; Thu, 22 Sep 2022 11:56:47 +0000 (UTC) Message-ID: <5da6ff25-bf96-743b-8d5c-152838044ecf@redhat.com> Date: Thu, 22 Sep 2022 07:56:47 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v9 0/7] sched: Persistent user requested affinity Content-Language: en-US To: Peter Zijlstra Cc: Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Tejun Heo , Zefan Li , Johannes Weiner , Will Deacon , linux-kernel@vger.kernel.org, Linus Torvalds , Lai Jiangshan References: <20220916183217.1172225-1-longman@redhat.com> From: Waiman Long In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/22/22 04:45, Peter Zijlstra wrote: > On Fri, Sep 16, 2022 at 02:32:10PM -0400, Waiman Long wrote: > >> Waiman Long (7): >> sched: Add __releases annotations to affine_move_task() >> sched: Use user_cpus_ptr for saving user provided cpumask in >> sched_setaffinity() >> sched: Enforce user requested affinity >> sched: Introduce affinity_context structure >> sched: Handle set_cpus_allowed_ptr() & sched_setaffinity() race >> sched: Fix sched_setaffinity() and fork/clone() race >> sched: Always clear user_cpus_ptr in do_set_cpus_allowed() > I still think this is ordered all wrong. Esp. with that affinity context > doing the right thing isn't onerous at all. > > So please, re-order this and fold all fixes back in so that it becomes > a sane series. Basically patches 5 and 6 shouldn't exist, they fix > issues created by the earlier patches. > Thanks for the suggestion. Will rework the series as suggested. Cheers, Longman