Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27872500rwd; Tue, 4 Jul 2023 09:02:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlEGN5OLu6taxgVdoWP9aiBtA8Ur9yUzKD4MGu0+xAsfXpC7ghFzYuSuFxRi5YRiNV+vonG4 X-Received: by 2002:a17:902:748c:b0:1b8:73a4:706a with SMTP id h12-20020a170902748c00b001b873a4706amr11942445pll.69.1688486566301; Tue, 04 Jul 2023 09:02:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688486566; cv=none; d=google.com; s=arc-20160816; b=DuT0eeyq7W0SiVvidw3qzCJzlYuMO7qxZ19EaqIJBEqfruRi7xSNuJ9woBh0+rKjAR WPuiTf4Zu2zo7y1fQlxB2fyLjzcWzRwwo7dcYf8mF6FE2gyHkZTpIwguNokJ+IQU9HlW vWbcTnuzUOssfQZIPWmVWbOdysI1cgOPMuw9vnRj6zT88VBFBgebEz7NfXNmO4IFQtBM rI8Sc36Rx8l3c9Z+3cDkKvcGRTSk/DXVsPsiPoWzpbcGPqDx0lhgc4MCmuENx7RuLo9L /0U/d0taWFaFxFApuk5Ts/1Yy9Dqn4hoi2Uqo8Bb0PttVWtAZ4OGZ/CnZ1gDcvzuvrRf I+tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=o3f/KnP/Vpac561DAxEX8ahpmDGVq/HBOY3OPPidhIk=; fh=vqQEzITRAgEULOv2QSyGRZ5QF2XYeXiyaAaAkwqMlYw=; b=vx/Q126G9NDGz72fLlwOLOTkZ49nFccJWagiRrg8o+F5SeIHgJhbXxQ8LwQZPYQ04A lYin8la9hgl2WsfVCQjRJJpg0TXFasn9JHwhG37ZqTfaTcITqMpeZSGXuewwswaTkbOV 2MFcBgzW8Io+AMXTkO8YsLYcmcBipG4zBYliLlQifr0UWTsLgmGK7L0PUFSWNKNqSJQl I4ozOEqfgvSe9dogWwWO5uLf2TNdYzFRWGMeyvaiU9UzQ8h4NWztgST/kHVglVQQyQOK TMDOczB8I8mwMxg87k3z5yvYxvSfdGkzUbQhJiL0roDQe/4OZb+zGnTV+SaWeamRzZNB H4/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GfoJPWRu; 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 a1-20020a170902ecc100b001b89b691c7asi4479662plh.196.2023.07.04.09.01.56; Tue, 04 Jul 2023 09:02:46 -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=GfoJPWRu; 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 S231494AbjGDPxg (ORCPT + 99 others); Tue, 4 Jul 2023 11:53:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231162AbjGDPxe (ORCPT ); Tue, 4 Jul 2023 11:53:34 -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 C5178B2 for ; Tue, 4 Jul 2023 08:52:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688485967; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o3f/KnP/Vpac561DAxEX8ahpmDGVq/HBOY3OPPidhIk=; b=GfoJPWRuxv/ZK3mG1n5+2QiEmPLqJYY3FdN9VkNTlmbPO0HKWALMIUq6ypLVyNT99FQDZJ SyHnSP+bplBSmg/G1Hi8JPO5KtQsmV3z2sOFTWkTl7EXxeSAOYlzCDnGH4HR+DfABGb9kb +EstiFHSHzNj/ZVAgw6NV9TBhFX0lMk= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-607-mlqY3WL_ONaVJ6cKV5Jklg-1; Tue, 04 Jul 2023 11:52:46 -0400 X-MC-Unique: mlqY3WL_ONaVJ6cKV5Jklg-1 Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-4fb76659d44so5373890e87.3 for ; Tue, 04 Jul 2023 08:52:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688485964; x=1691077964; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=o3f/KnP/Vpac561DAxEX8ahpmDGVq/HBOY3OPPidhIk=; b=e4aldPpZlf3E6txppWpuqKcqNNmAYmjhyozmfouFSSe0xDJ69WNupMcBK3Z7ns+AFY M+Cqdp3senB8cxjwfMno46MeqNDZvQbv0vdlGuq/DKLnX529hg19BY/8rxjPbQZ80ieq mSKQL2khwEXm7khxLvZzlxHFQZLZBSVkWHWya1HA6jwXTgm1T0n1V0aFErcuCZY+7y0B jBU1eE3V4k59E2m4zVvIsVg93Isg8x1PkVlnRWn8U/kyYPtBqJIPItTr3POTLk6s9T6j J6V+c2HlcAVo3hfBsUhaKZBzA3R/Gx+d8LD+vvqrGPzHziO/H5wgxlDqAC0Y7KeLaAd5 MBdA== X-Gm-Message-State: ABy/qLbw9cumfQTfZSKY5zFes/Jlv8Mm7bLFpFVA4Af5ccRZU7O34224 sEcAu5061DwIZ1IPc4h0yOaTw8zwybOleObruUaVM/QXH86gB/hNY6EJ2DLh4c+VKoSb3tp66r3 5L8hr4Liv3aaknJQoUV1M1ziEI/guri7tXg8= X-Received: by 2002:a05:6512:310a:b0:4fb:9168:1fc7 with SMTP id n10-20020a056512310a00b004fb91681fc7mr8705090lfb.51.1688485964536; Tue, 04 Jul 2023 08:52:44 -0700 (PDT) X-Received: by 2002:a05:6512:310a:b0:4fb:9168:1fc7 with SMTP id n10-20020a056512310a00b004fb91681fc7mr8705065lfb.51.1688485964147; Tue, 04 Jul 2023 08:52:44 -0700 (PDT) Received: from [192.168.0.224] (host-79-49-207-213.retail.telecomitalia.it. [79.49.207.213]) by smtp.gmail.com with ESMTPSA id lr3-20020a170906fb8300b00973f1cd586fsm13572166ejb.1.2023.07.04.08.52.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jul 2023 08:52:43 -0700 (PDT) Message-ID: <70837b44-4d21-9d70-d13b-2b6168fd02e3@redhat.com> Date: Tue, 4 Jul 2023 17:52:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [RFC PATCH V3 4/6] sched/deadline: Introduce deadline servers Content-Language: en-US, pt-BR, it-IT To: Valentin Schneider , Daniel Bristot de Oliveira , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot Cc: Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , linux-kernel@vger.kernel.org, Luca Abeni , Tommaso Cucinotta , Thomas Gleixner , Joel Fernandes , Vineeth Pillai , Shuah Khan References: From: Daniel Bristot de Oliveira In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,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 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 = 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. > >> + /* 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? I think that the commend was added more as a check if it is correct... it seems it is. Thanks Vale! -- Daniel > >> return p; >> } >> >