Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6848289ybi; Mon, 22 Jul 2019 02:45:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRqiKastwVK+ybTSuj/g199ibIVKeMe7fTCEO+w7dnI+mBqhlMOZU2/EFYIk0bII5utarb X-Received: by 2002:a17:90a:bb0c:: with SMTP id u12mr77316154pjr.132.1563788727922; Mon, 22 Jul 2019 02:45:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563788727; cv=none; d=google.com; s=arc-20160816; b=1EJ245yENQm8FBsy/J/fXPJFmGL5hPkPYkg126UR55mIKmoyv6uGeMgZoIwmCZ9Ysk HcCpC7Dhb8vsrCLoz56Umvp5RlsljYap31LM/BNDZSWKluCKO2BL53j7k6R6SDfxgZ7k bz7WgMwmrHdu20MHN6mLShYiT6TZBemh1Tw9RBvrSB+L582UCz2Wbbzwl2a+Ea9kJML3 da1XWbNTPNB5C+4LpRw1FHeFr5QI0yfpcC0vp1SqTp6cHwfHMnhZehcoMdcsN70DA4wh HcPlglxdJTzpc99+RazYoLWoAveI+4vdQxGIwAW82ciMWsqQfKNEzyNryp+tO8EkQfB6 3klA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=KJ7rpUTFCybnPfDp2k4jQnGWE9bV+rhbDwIoSmEKhQo=; b=Pq4Gql4TM1EkiGeYe3y7pkOBDw1dnsssl0kZ/lzAF5rBMCs+lSYdcgT5Bi6e+MML1S ld396ADmhNYOZ+v5XNffTyO6BAElJqc06JXvh6pVVqrJAb2WnlWtxiYb4dE3BshTKpW6 NYXTI3EWSWTGbQ+8K07sAdyd8sNBy7qYwIA584xOkiP3xvXMBibtWfR1ZLU9T/4JSk0e Sol26FB0Wk1kTBMNDq+JpIRwYQCGLdYbwrL6O5plM0OlMxKvgPzaDLf6OH6BCHW4b2ac qwVAvORsgKmRC2L/9ZfhnaPaxvwbt2y+tkV1JLJt7svJskkJxb2fzjNekKai3HUYZo3+ 3ZeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o21si11128217pgm.453.2019.07.22.02.45.12; Mon, 22 Jul 2019 02:45:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728792AbfGVJIW (ORCPT + 99 others); Mon, 22 Jul 2019 05:08:22 -0400 Received: from foss.arm.com ([217.140.110.172]:33942 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727731AbfGVJIW (ORCPT ); Mon, 22 Jul 2019 05:08:22 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7D71A344; Mon, 22 Jul 2019 02:08:21 -0700 (PDT) Received: from [0.0.0.0] (e107985-lin.cambridge.arm.com [10.1.194.38]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2E6DF3F694; Mon, 22 Jul 2019 02:08:19 -0700 (PDT) Subject: Re: [PATCH v9 2/8] sched/core: Streamlining calls to task_rq_unlock() To: Juri Lelli Cc: peterz@infradead.org, mingo@redhat.com, rostedt@goodmis.org, tj@kernel.org, linux-kernel@vger.kernel.org, luca.abeni@santannapisa.it, claudio@evidence.eu.com, tommaso.cucinotta@santannapisa.it, bristot@redhat.com, mathieu.poirier@linaro.org, lizefan@huawei.com, longman@redhat.com, cgroups@vger.kernel.org References: <20190719140000.31694-1-juri.lelli@redhat.com> <20190719140000.31694-3-juri.lelli@redhat.com> <50f00347-ffb3-285c-5a7d-3a9c5f813950@arm.com> <20190722083214.GF25636@localhost.localdomain> From: Dietmar Eggemann Message-ID: Date: Mon, 22 Jul 2019 11:08:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190722083214.GF25636@localhost.localdomain> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/22/19 10:32 AM, Juri Lelli wrote: > On 22/07/19 10:21, Dietmar Eggemann wrote: >> On 7/19/19 3:59 PM, Juri Lelli wrote: >>> From: Mathieu Poirier >> >> [...] >> >>> @@ -4269,8 +4269,8 @@ static int __sched_setscheduler(struct task_struct *p, >>> */ >>> if (!cpumask_subset(span, &p->cpus_allowed) || >> >> This doesn't apply cleanly on v5.3-rc1 anymore due to commit >> 3bd3706251ee ("sched/core: Provide a pointer to the valid CPU mask"). >> >>> rq->rd->dl_bw.bw == 0) { >>> - task_rq_unlock(rq, p, &rf); >>> - return -EPERM; >>> + retval = -EPERM; >>> + goto unlock; >>> } >>> } >>> #endif > > Thanks for reporting. The set is based on cgroup/for-next (as of last > week), though. I can of course rebase on tip/sched/core or mainline if > needed. Not sure, there is another little issue on 3/8 since uclamp is in v5.3-rc1 as well commit 69842cba9ace8 ("sched/uclamp: Add CPU's clamp buckets refcounting").