Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6815117ybi; Mon, 22 Jul 2019 02:10:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjHf5KqwGzsfThELr6xnrzr01WcEozz0VE+RiSeMxy2E6DDBtsyrRXRtispEq0qwT5u+kk X-Received: by 2002:a63:69c1:: with SMTP id e184mr68349897pgc.198.1563786609659; Mon, 22 Jul 2019 02:10:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563786609; cv=none; d=google.com; s=arc-20160816; b=MWy+/9v8QcBJO3A9zlOH4C3ONtOryanxmciXpY9DC1onNs3yqqyn7Ccn10iW9Ex1F+ jE1VrTXTLDtcja5Z3sHvBWl/Sg8NGIcByza1SpFVAv1ZHZ6mkebg6Ex0dIvhiXa5bXdP OkYY4/jV6F4sfNJSMJKo4i2yLKP86nX1+YgDvCXwGvqWyBkaXK+nAwsE8kGTtAXjC7MG mTR1MP7xYzrbw+zwFmVvmSwXlfcBaESKl3FSyqOSFJeh7lbwY/w16d2vhM5JjmUHkuex 3GLuYFITuTD28pFEqYZ7bJm9GbJPPZJl9HA2M+x40xBkwgFzQviCf3JHFPAFpNo1l32/ Ah9Q== 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=EhekRP9/uVATLiUXZjXkOdX4w1VU4Z2gOGujz22MryM=; b=aiBhSA6k02R6Hx41IqjbPhP8kurDD46WxisAnIiPT8IxEPTbAZl51P9zTqGssfPwM0 xosstEPcIwH9509hQnCR7oD89Rycm43uRpr+T7pCkDxCpT8/V9mZFscgQQ5THDxVjPU1 POoivN5fBy09gOIiNz8TFeWF2sXHXlMt+sf4KdkTZbjGUCsEyJpNusqh9wbLDOc55JKk CIJG7beoqVIP7GZwv93AXh9M3Or80MM+hKA16GPDqKGmJS9Ed4UpoVFs5+N9ymkbD3t3 DwtY3qPBuuhnz8wZP4asZccEyfwZ6VqZnehczshm4O+RSwdeJDkap+PKvhPfU0uYEmho T8Uw== 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 u70si7677136pgd.1.2019.07.22.02.09.53; Mon, 22 Jul 2019 02:10:09 -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 S1728275AbfGVIVF (ORCPT + 99 others); Mon, 22 Jul 2019 04:21:05 -0400 Received: from foss.arm.com ([217.140.110.172]:33424 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726944AbfGVIVF (ORCPT ); Mon, 22 Jul 2019 04:21:05 -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 B7C41344; Mon, 22 Jul 2019 01:21:04 -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 6CC003F71F; Mon, 22 Jul 2019 01:21:02 -0700 (PDT) Subject: Re: [PATCH v9 2/8] sched/core: Streamlining calls to task_rq_unlock() To: Juri Lelli , peterz@infradead.org, mingo@redhat.com, rostedt@goodmis.org, tj@kernel.org Cc: 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> From: Dietmar Eggemann Message-ID: <50f00347-ffb3-285c-5a7d-3a9c5f813950@arm.com> Date: Mon, 22 Jul 2019 10:21:00 +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: <20190719140000.31694-3-juri.lelli@redhat.com> 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/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 [...]