Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6836309ybi; Mon, 22 Jul 2019 02:32:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqx06/3DA1jB43IPiFRWTudo05LAOivWMZsGYk3ADpRd+CsCFxtwTkmJOET5UiU16YNifSeV X-Received: by 2002:a17:90a:ab01:: with SMTP id m1mr73108395pjq.69.1563787958538; Mon, 22 Jul 2019 02:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563787958; cv=none; d=google.com; s=arc-20160816; b=suQg9e+rEeCGxQQb1Tu0he0iLc9NKWm/fGLUt31mEVIGRvYFvYXIAxVKGWcKZj1IB6 XGM9pD2h0sLm+0T8kdEklbxiqz695x81GosxwmUqOIbv/sYTopXy2cMXmuhR9gA3TcmH 05ANeN8y1cZtUT7NEigez7hLN+bAQxJfiU8Oa9ZhStg+1K6MB1yF4faGiZkv4vv2N99E O9HRLaKl1lTl8luPG/JeVtuTYxKT4bnshrepv02Bhi1tXqiihE687wTz5BLYSzCB4oat CM/inrJYBZYL5qBETClVZC3XKFBOqXu2T53IxDn166yquRCVcRDemSmvu3kinggL3cb2 X7Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=R9bzahhq3ljNlfBNBmXOt8CPhPYVWX1wy9gOZA82RJA=; b=s2TYsG1qfES7LYjrOQhz0ojE9JP9iIdIrRYbXoOBILaw6lQojvhklQ+pWFfrTGzRtn ih0FQbN3xi8rExlL9rHEvdJs9/6OKPkfr14LGcX2pPeRJiXZ1iMNrw+3cK222Mh6er2V x0F23KRHm+2JA+LxVobgoLk5diodsnY+2FS6+ZS8L+cXI9ePQRN5gchw3iUeZcf5Yoiq +8ZHo8cZkaXYb1IuQ4a91uuYnHQAahGIUox5cMIAYb/N3vsimUh0Na3P+ulwuCr5v8X6 UK9St8f7qWu7sgHp4wEctx966/7s27uyoH6SV5v7bsOUY4CpQZvL3HjKfz9Nm4MYzvKn WGXg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o6si12109503pll.40.2019.07.22.02.32.16; Mon, 22 Jul 2019 02:32:38 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728475AbfGVIcU (ORCPT + 99 others); Mon, 22 Jul 2019 04:32:20 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45929 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727304AbfGVIcU (ORCPT ); Mon, 22 Jul 2019 04:32:20 -0400 Received: by mail-wr1-f65.google.com with SMTP id f9so38393509wre.12 for ; Mon, 22 Jul 2019 01:32:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=R9bzahhq3ljNlfBNBmXOt8CPhPYVWX1wy9gOZA82RJA=; b=cECxVKR2yN4NqkYnC4fU8POXmr8r/0xiF+07wP7emRed7kl9Pp/HfZjD1BLVmkM4De 8R2fVx1+8Wmqfmpeb7loFaf4zed+lVUxWnZSW+zAEEDup8qHHY6V4+B9BXx3IrLa9S0/ oG7qlOKPszBD92gtowCvkHukaN10BnKkEqx08/muYK1LGL3m/efByX0HPkofoQGVXgws u6gJZQIWEkvilp3KMyJ0KxiNhPe91LhkPA0SQ3KBv6XtwpatArt+Y43P9rnAosWnLV6+ WZN3PvVCT2cV0AW5GG0T7rJn7ISdxwd2xgFDDYT8hhcVuFPe7JklMnZP6zWTvE7wDsUK Yc5Q== X-Gm-Message-State: APjAAAUhTHiToyAe3emt7xBtETTxpB7JhfaBYshEQydt2vhKHse5gHRK xJq66zm9RHrViqpNYVuGy10Xow== X-Received: by 2002:adf:f68b:: with SMTP id v11mr9008216wrp.116.1563784338289; Mon, 22 Jul 2019 01:32:18 -0700 (PDT) Received: from localhost.localdomain ([151.15.230.231]) by smtp.gmail.com with ESMTPSA id x18sm34282815wmi.12.2019.07.22.01.32.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Jul 2019 01:32:17 -0700 (PDT) Date: Mon, 22 Jul 2019 10:32:14 +0200 From: Juri Lelli To: Dietmar Eggemann 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 Subject: Re: [PATCH v9 2/8] sched/core: Streamlining calls to task_rq_unlock() Message-ID: <20190722083214.GF25636@localhost.localdomain> References: <20190719140000.31694-1-juri.lelli@redhat.com> <20190719140000.31694-3-juri.lelli@redhat.com> <50f00347-ffb3-285c-5a7d-3a9c5f813950@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50f00347-ffb3-285c-5a7d-3a9c5f813950@arm.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Best, Juri