Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27974928rwd; Tue, 4 Jul 2023 10:35:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlHbZCBAeEamEBflHTdREpCwrU5u60fa9D8PZAyXtxgxmjadAYxobEtrTpFnhnV2Zz8tQo1T X-Received: by 2002:a17:902:700c:b0:1b6:89bf:4db7 with SMTP id y12-20020a170902700c00b001b689bf4db7mr10803752plk.69.1688492113045; Tue, 04 Jul 2023 10:35:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688492113; cv=none; d=google.com; s=arc-20160816; b=oUyZYtTlibmcRT3GxWIfS5M4vqoQNCzk+xYdLFPXZRGZNUaFDuXIEEhCKenLLaV4jW F6qEoPQMQS5wN5GX7WD7K0kkS1XnmTNDXaI3Hz/sJvKs8y9wIcUmu5CCkHtns941pJMR WRPvvwvSLm4cl0+9X7K4tZBrczY3g2AOOtV0TlHrHtq4uiiR2zRbXYCRcZdCFtdytiC6 L32j25qqgHXrybgAt5IBiwkXXsQIL21+fOvQL6G2bIgc74nPVrbhvLZepHN0rDDfpS7Q bhwV95LA+fCiVJBNjPG8+Hcf/lGv2JP9K5wVjS0E5qtZBWccySn8LKktJ+sjKrrVYlNR kT6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Vj6prjYgCz+OJ6VBMNkshSba4mEisihuW2iEwzn3epM=; fh=3DHAwFBszDSGaB8pGYuAC+VNGlDHmszqq2JjcW50FPE=; b=n478XU3qrDN7/jdxvcdZii+eT7Mqe+DbH1XRFjo9oviya7z5NReCQaOw8ODMnr3xeF stmC9DqdVx+TScRjDlygT8XIImuI6FCZ5UEi/R95rQsNE6kw3C2cy/pv6iWtxv1SGujd YnYVCcMY7I2PK3c59dYgc/X2DW8wp2mLZYH8HQplixwV+qA3bNg393mEXdaEaq2oDqDT htTBxc4beDpD3x2r0F31VC6LLmqDQuyK63BQBk9GDTpSX6XWlXKt93Fq/cghR/W8Mlyv JcU1dM/iXiKSTTeiIBgE8kLah7r1YQn66lqLIY1pqpPxVo2lxfkpYLP+8/XZqoBhoEB8 BgFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=kSsq7DA2; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m9-20020a170902f64900b001ac6d4e1d72si21839896plg.149.2023.07.04.10.35.00; Tue, 04 Jul 2023 10:35:13 -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=@joelfernandes.org header.s=google header.b=kSsq7DA2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231334AbjGDR2a (ORCPT + 99 others); Tue, 4 Jul 2023 13:28:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230256AbjGDR20 (ORCPT ); Tue, 4 Jul 2023 13:28:26 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFA2610D5 for ; Tue, 4 Jul 2023 10:28:24 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2b698937f85so97718071fa.2 for ; Tue, 04 Jul 2023 10:28:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; t=1688491703; x=1691083703; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Vj6prjYgCz+OJ6VBMNkshSba4mEisihuW2iEwzn3epM=; b=kSsq7DA2FSbUhRUmoAvyo8d688tglP3OPUlHshPbPpuaRGjPtWyT6BNiUGV1q/Emld uyM5jZAfRt8jZQVMMa0HVMJtzICcPV+TKZ3YZZbisoZfRa15te/ALBE1tKLtZWkhrC/K wYE8ztb0bqBY1ZJe9//3RzbKxTm9bY9j+cb90= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688491703; x=1691083703; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Vj6prjYgCz+OJ6VBMNkshSba4mEisihuW2iEwzn3epM=; b=Bo//meo8xcEqDVaF/BcM1fhB1w8vWcBi8dmyN9dR8AanpMGIvTRB+17R4lVdWF0GLR 7bokurUi7TxO0UlcW+WJvCdsVY8gKvKN6SAyugh3dbOMfHwAIKTTl8Nj3A0qFMrRs1s3 6hAAva9B/6eXSx8u6JMrqtukhYyUdO51c4skC8TCGmwCMUtwOYSeZPQJ/XDmmPs6hfo+ TKJ31L8OOxHzFGc4hW365XaZ0qBrVAtB279eyZOMSOvWwk+PfuSO6wdWtbcrWdxUQkx2 tTOTM7hUluo1zUw6MAn7JWu3oXf5UCRi4R4Uiowo4sW9UTRMGIJsU4YhZuIV7vUo6fM9 hxhw== X-Gm-Message-State: ABy/qLaKmPQh6Y/WYgMne8hKd1FeqZzxHLcg7jTErD+yOj1GIdsvyG9T 59nYfeMB5A5uVRxGHplwKxNPTiBm5bxGJjA3Vw5Qdw== X-Received: by 2002:a2e:94d7:0:b0:2b6:dd78:2a8e with SMTP id r23-20020a2e94d7000000b002b6dd782a8emr6359314ljh.50.1688491702788; Tue, 04 Jul 2023 10:28:22 -0700 (PDT) MIME-Version: 1.0 References: <70837b44-4d21-9d70-d13b-2b6168fd02e3@redhat.com> In-Reply-To: From: Joel Fernandes Date: Tue, 4 Jul 2023 13:28:10 -0400 Message-ID: Subject: Re: [RFC PATCH V3 4/6] sched/deadline: Introduce deadline servers To: Daniel Bristot de Oliveira Cc: Valentin Schneider , Daniel Bristot de Oliveira , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , linux-kernel@vger.kernel.org, Luca Abeni , Tommaso Cucinotta , Thomas Gleixner , Vineeth Pillai , Shuah Khan Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Tue, Jul 4, 2023 at 1:25=E2=80=AFPM Joel Fernandes wrote: > > On Tue, Jul 4, 2023 at 11:52=E2=80=AFAM Daniel Bristot de Oliveira > wrote: > > > > > > Back from EOSS... > > > > On 6/23/23 18:47, Valentin Schneider wrote: > > > 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 =3D 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). > > > > makes sense... I will check that in the v4. > > Makes sense to me too. Since p is either a real DL task or a CFS task, > "if (dl_server(&p->dl))" is incorrect. "if (p->server)" is the right > check. Grr, "if (!p->server)" I mean. Which ensures that set_next_task_dl() is not called on a non-DL task. - Joel