Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12751542rwd; Fri, 23 Jun 2023 10:08:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6e/SbaLOcQaCTwPp6IP+X0+FbW2Ev+aobb8l3ZtV376WgW5GdBqfoZUCIeB53qHT3SLHqt X-Received: by 2002:a05:6a20:a121:b0:126:23d:cd03 with SMTP id q33-20020a056a20a12100b00126023dcd03mr1124597pzk.9.1687540105820; Fri, 23 Jun 2023 10:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687540105; cv=none; d=google.com; s=arc-20160816; b=IOAr65MC90il25tYDVZkJyTEapARoElYFgRaYExzlkaLthvGPnzzHSpTJEfilAn+S9 v6WrV0I9MF4eT92UWealtU8Gy5iAjohsuLFIvvxU8ukm2oC7K2YSUaE7bomsJ90l4cMU Sh9niRlUyYoCGWsHxCkBGJ+dbLzy/jqyqs7oLIWeZZrIWF8nc7HNltVh9NlLIps2RDye EgJAAYJMCs6fL6qyYxb+yXf3E6QaF8wMlWtgwiMH0CeVlcXzRMreTKmguMAfG+FjKbBr z4AFj4iwV++ZyuZu8bLq3Oj4KleVeUgZFocJERwZEgztHpL0m5aOVvvND80zsvbh+8HU vvDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=UT25gWFOeZcYmyA4boqdjMakUtDcuMgwh+wST0DBOXc=; b=unA4MNzOxxym9hCYbOafozDplqoke52lgqEHZs0R1tHrVjwE03QnNP7fGE0FB9QiLI PHXDCgmaFkgrd1Lwn4x0d0lcg/fVcVAS+yoPhzW0rwuhNh9WSh70DVftU5JDINIjBheZ kPDC3NCfBDQLW1IqIzeM4t/eCEKVrtIWmqoDe2Vvrj+Uj0EPlS/+4OEO18LIL5BJzUuM vPbjEuyJ8BcOg3sz/SWS9E05ZVArEluhh8yNEqbsFxuXwDLMhC1qnD0P9qB592FNvRYD +nx9h+xAOYGo1vl9sU7Rp6nYTa80Pi7Q/4u1rjmw68lHXT8nVR1XVhiwBaEgesdUeaA+ HWZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RXXPqsbe; 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 h11-20020a170902f7cb00b001b03ba09cd1si8743707plw.128.2023.06.23.10.07.59; Fri, 23 Jun 2023 10:08:25 -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=RXXPqsbe; 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 S232241AbjFWQsR (ORCPT + 99 others); Fri, 23 Jun 2023 12:48:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232442AbjFWQsH (ORCPT ); Fri, 23 Jun 2023 12:48:07 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FD1E271F for ; Fri, 23 Jun 2023 09:47:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687538845; 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: in-reply-to:in-reply-to:references:references; bh=UT25gWFOeZcYmyA4boqdjMakUtDcuMgwh+wST0DBOXc=; b=RXXPqsbegKRZnlBCZpkytWtDIrPqSKPY0s4mUmeGkTCw0h9sVuXGsBTM7QJcrot6JFRR6R fVwl5yAP42d3RWiJTlysfAS8AVCv/Nxnl0TDHp8gH/qtJEQRs4ofnmiHo4LWa47Tandm+o 9qA0fNAUhYJ16isGE+Md9W9CIJ9ciB0= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-675-hERHwfvlNMeV20DvhAh4mQ-1; Fri, 23 Jun 2023 12:47:23 -0400 X-MC-Unique: hERHwfvlNMeV20DvhAh4mQ-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-3fa7a851dadso5067895e9.0 for ; Fri, 23 Jun 2023 09:47:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687538827; x=1690130827; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UT25gWFOeZcYmyA4boqdjMakUtDcuMgwh+wST0DBOXc=; b=G9sj6xXhy757zC2Gqg2ckhN2yFV09q1nPlLsUthzrkT62SBYMHC5At3vpu2hDRzA02 fOkvYSXAqUoLX6PTk//VM3/FQS35LQNHpsvgDBy19Zfgjc7rw5rV46CIV5evePl0C12/ ivRP+AAvGTutpiyXyd9Ou46YHEjhB29H0A7CThjD1MfvTkCgtYh/w9YSRQjH8D9zIkCJ ndDK1N7gmXGmDKmE/ao5c4Q07rp2ZS1JyA3uvQHKrm739pdZDGMu6AQ2MqbkROs41Dxa JgdDdiro2JNXg9ikeZ0TOJXQrneuu5uDl+BeRqwyf4N6Q1CrvovTgxHeMdxbe+dCyJL3 HEdw== X-Gm-Message-State: AC+VfDxdSIbAHglb3QJQyz9mHtbXiIL456hwdt4Jf4N2wcoPSeCXTBQS Bl7HjrhEkJT59Qn0LbDZgfivEqc4NXMMqarFwUh4ZG7OLHY4Oqk+fJHJDsDR5vLnqmulifrPgIy 3nU13N9dy0LadX0sfZnRwoS5/ X-Received: by 2002:a7b:ce09:0:b0:3f6:536:a4b2 with SMTP id m9-20020a7bce09000000b003f60536a4b2mr17647192wmc.27.1687538826966; Fri, 23 Jun 2023 09:47:06 -0700 (PDT) X-Received: by 2002:a7b:ce09:0:b0:3f6:536:a4b2 with SMTP id m9-20020a7bce09000000b003f60536a4b2mr17647184wmc.27.1687538826642; Fri, 23 Jun 2023 09:47:06 -0700 (PDT) Received: from vschneid.remote.csb ([154.57.232.159]) by smtp.gmail.com with ESMTPSA id t12-20020a7bc3cc000000b003f604793989sm2791348wmj.18.2023.06.23.09.47.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 09:47:06 -0700 (PDT) From: Valentin Schneider To: Daniel Bristot de Oliveira , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot Cc: Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , linux-kernel@vger.kernel.org, Luca Abeni , Tommaso Cucinotta , Thomas Gleixner , Joel Fernandes , Vineeth Pillai , Shuah Khan , Daniel Bristot de Oliveira Subject: Re: [RFC PATCH V3 4/6] sched/deadline: Introduce deadline servers In-Reply-To: References: Date: Fri, 23 Jun 2023 17:47:05 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 08/06/23 17:58, Daniel Bristot de Oliveira wrote: > @@ -2033,9 +2147,20 @@ static struct task_struct *pick_next_task_dl(struct rq *rq) > struct task_struct *p; > > p = pick_task_dl(rq); > - if (p) > + if (!p) > + return p; > + > + /* > + * XXX: re-check !dl_server, changed from v2 because of > + * pick_next_task_dl change > + */ > + if (!dl_server(&p->dl)) > set_next_task_dl(rq, p, true); > Should this be if (!p->server) instead? AFAICT dl_server(&p->dl) can never be true since there's no pi_se-like link to the server via the dl_se, only via the task_struct, and the server pick cannot return the server itself (as it's a pure sched_entity). > + /* XXX not quite right */ > + if (hrtick_enabled(rq)) > + start_hrtick_dl(rq, &p->dl); > + IIUC that got hauled out of set_next_task_dl() to cover the case where we pick the server (+ the server pick) and want to more thoroughly enforce the server's bandwidth. If so, what's the issue with starting the hrtick here? > return p; > } >