Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2334964imm; Fri, 7 Sep 2018 14:53:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZplqj4KHpr2d/wZe542nucKSjN3z/vkavXJkOHOISQx3UWM2UykUUoCa+lYFneRdvVPNLr X-Received: by 2002:a62:9402:: with SMTP id m2-v6mr10636943pfe.3.1536357206643; Fri, 07 Sep 2018 14:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536357206; cv=none; d=google.com; s=arc-20160816; b=r35Z7LaYH8RSZ/5EHTmf/hTw+JNokwn3wqbYATi/dWDQ0q7iI7d///hYhiJKCzZraP yt/gfUUSn8/0r3K9Vw0qpyqE5zjkasfTiVh7xVFmhkn8PTOkLL/t86UCpawt3d1vPdwH QbwrFiM9KGirSk0BdUn2CW5zH10pyT36/7QQNC5mneURO/6a66zLajAcjO2PvCLGcO6D 6bZp8EewlsGs5GCgcEeU+uaXJcq4kbc328vw6cNhr/Y9Br2HpJ+gn2eeBvjUTttyibXw ueNDqjpW8HdxnP6n9jphXEI2o1TsqMquZD4/xbjpV2ezpThtH8pWOng/6Avupdo5/Kiw 2Nag== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tO2d9SjIy2VaoxzjLta8KOcSohM7RwiCmkPZvPu4ekE=; b=w8CJPzoKTThe3kybRZSKsl/1nH+ioD4+gAQnw6QT4VyT8gzP1vrioatDK5mkfsAo9W NNnUezKvGGERRrCZ03lYSwz83Kz2KpgJqVXorM0UOoOcwSqpvePwYYibBlbNNVPSE/KD E3eLu6GHQNbY7n6NPtJGbK9qVLYEzM0ChRVuWRk5t2OSRVmLLrFliL8fiX6l/07z84xJ rEj4Kt/zg/zei5LOrGr6n7mo9GJDEIZzUBM8A4vz951nGKYGUQxAuDUP+3Ez7Mn986wF Ts5LMJkzYpWZ9dWeUqcx04Q3gayvtphozH3CBnFG2kKaIxjpyUNj9aHwcAsnLT9bJOAh UuKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=HUDPlpa6; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f76-v6si9911196pfh.33.2018.09.07.14.53.11; Fri, 07 Sep 2018 14:53:26 -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; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=HUDPlpa6; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730561AbeIHCZR (ORCPT + 99 others); Fri, 7 Sep 2018 22:25:17 -0400 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:23443 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729963AbeIHCZR (ORCPT ); Fri, 7 Sep 2018 22:25:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1536356542; x=1567892542; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=tO2d9SjIy2VaoxzjLta8KOcSohM7RwiCmkPZvPu4ekE=; b=HUDPlpa6N3iNyh97kiArcgfrzJ1LdVCV7htJ7BTh3bNMfF3YOvQN7Uty mEJDo0eB/6GVRMi4nUneHgS1LXxFeRjr0KaCcYVEegPif+uRovYasMSgl dzUao4/JnWix6b90P+mKEnUtoGf9OOEpBVS4tlQSGN/onvfe95aGpehjd 4=; X-IronPort-AV: E=Sophos;i="5.53,343,1531785600"; d="scan'208";a="737530466" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1d-2c665b5d.us-east-1.amazon.com) ([10.124.125.6]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 07 Sep 2018 21:42:21 +0000 Received: from u7588a65da6b65f.ant.amazon.com (iad7-ws-svc-lb50-vlan3.amazon.com [10.0.93.214]) by email-inbound-relay-1d-2c665b5d.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id w87LgF3f060417 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 7 Sep 2018 21:42:17 GMT Received: from u7588a65da6b65f.ant.amazon.com (localhost [127.0.0.1]) by u7588a65da6b65f.ant.amazon.com (8.15.2/8.15.2/Debian-3) with ESMTPS id w87LgD14027481 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 7 Sep 2018 23:42:13 +0200 Received: (from jschoenh@localhost) by u7588a65da6b65f.ant.amazon.com (8.15.2/8.15.2/Submit) id w87LgC3h027480; Fri, 7 Sep 2018 23:42:12 +0200 From: =?UTF-8?q?Jan=20H=2E=20Sch=C3=B6nherr?= To: Ingo Molnar , Peter Zijlstra Cc: =?UTF-8?q?Jan=20H=2E=20Sch=C3=B6nherr?= , linux-kernel@vger.kernel.org Subject: [RFC 30/60] cosched: Disallow share modification on task groups for now Date: Fri, 7 Sep 2018 23:40:17 +0200 Message-Id: <20180907214047.26914-31-jschoenh@amazon.de> X-Mailer: git-send-email 2.9.3.1.gcba166c.dirty In-Reply-To: <20180907214047.26914-1-jschoenh@amazon.de> References: <20180907214047.26914-1-jschoenh@amazon.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The code path is not yet adjusted for coscheduling. Disable it for now. Signed-off-by: Jan H. Schönherr --- kernel/sched/fair.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 30e5ff30f442..8504790944bf 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -9942,6 +9942,15 @@ int sched_group_set_shares(struct task_group *tg, unsigned long shares) { int i; +#ifdef CONFIG_COSCHEDULING + /* + * FIXME: This function has not been adjusted for coscheduling. + * Disable it completely for now. + */ + WARN_ON_ONCE(1); + return -EINVAL; +#endif + /* * We can't change the weight of the root cgroup. */ @@ -9955,6 +9964,7 @@ int sched_group_set_shares(struct task_group *tg, unsigned long shares) goto done; tg->shares = shares; + for_each_possible_cpu(i) { struct rq *rq = cpu_rq(i); struct sched_entity *se = tg->cfs_rq[i]->my_se; -- 2.9.3.1.gcba166c.dirty