Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7137552ybi; Mon, 22 Jul 2019 07:44:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmYQtj8wrqDZ1OsnlKKYt6aUj/j5WcJHYbH7uPn1/C7TTjJzhqPW9gUdIv+OyhWFQdcI/F X-Received: by 2002:a65:57ca:: with SMTP id q10mr74280105pgr.52.1563806683620; Mon, 22 Jul 2019 07:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563806683; cv=none; d=google.com; s=arc-20160816; b=CyZckWU3bFYIY+wE7vvPs8ZrFtPDY8dvJBZ1eI1uPeh12tTC4rYgqhfJlDXkwf0/HN Uy4fwaZwCmBr06YWfd2RRT2PQmhWpQxnRySbjFXLcYekyHZ5Dw3Difc3CQqCcdmW6/Zk JUxfqCryD6B2KMWyWAGLRMFeFhmmSvcRmcjudDDnur6tnAT8rqBbaKp81hFYXafzbBvs MXq9NQ3EdDloXsIiMtm2U911U9A2xp8dX9bboRL3uh4WmoauaJVkujSS1x+fQYqOxJqv O6+Lt5aRt3+6LeElTW0x7l4hzcJcSrCs5b9VNOQGIjK3/bX/xxWOxZrc4utdnOPFmhIp emDA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=xjVD3RVa95nyerWH02XHFkQcjqxUlvwuO6wmZ+J6CBI=; b=JNhzZNYjt09tmdRSoHGj6Hs1F9rXvyPH20+tHgCrVLP/LNVnO55h9RRc+8LXz0bEkr A3jC86kQPyMRImA4v9Ny5fBMeyvCmbD7DoHkczHIYCmbJoZ9bdE00TpDHOO8au1sglWg vOGy2tEQiujpPzumtxSQkfR4eHKIWl3W1rCnUaLwjHWRgk2CUX2ASSbQRMwUAHzsOSmj Q+BFfOs8btM+xbTiM9bVZWYdtYvOUtK9nkRIwv8KJWLKg6D01k+Jz1opyEqiuC96jDkS 7KXITQMLnBjUk0B0W7pAgBeU3cPB+/3qeWIEaSBMuu50mVw3yBaRjtb8VEgiZb5O9TQH 5n0Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10si9108191plp.117.2019.07.22.07.44.27; Mon, 22 Jul 2019 07:44:43 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729803AbfGVLHi (ORCPT + 99 others); Mon, 22 Jul 2019 07:07:38 -0400 Received: from foss.arm.com ([217.140.110.172]:35912 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727304AbfGVLHh (ORCPT ); Mon, 22 Jul 2019 07:07:37 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3236A28; Mon, 22 Jul 2019 04:07:37 -0700 (PDT) Received: from [0.0.0.0] (e107985-lin.cambridge.arm.com [10.1.194.38]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DFE473F71A; Mon, 22 Jul 2019 04:07:34 -0700 (PDT) Subject: Re: [PATCH v9 4/8] sched/deadline: Fix bandwidth accounting at all levels after offline migration To: Juri Lelli , peterz@infradead.org, mingo@redhat.com, rostedt@goodmis.org, tj@kernel.org Cc: 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 References: <20190719140000.31694-1-juri.lelli@redhat.com> <20190719140000.31694-5-juri.lelli@redhat.com> From: Dietmar Eggemann Message-ID: <5da6abab-00ff-9bb4-f24b-0bf5dfcd4c35@arm.com> Date: Mon, 22 Jul 2019 13:07:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190719140000.31694-5-juri.lelli@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/19/19 3:59 PM, Juri Lelli wrote: [...] > @@ -557,6 +558,38 @@ static struct rq *dl_task_offline_migration(struct rq *rq, struct task_struct *p > double_lock_balance(rq, later_rq); > } > > + if (p->dl.dl_non_contending || p->dl.dl_throttled) { > + /* > + * Inactive timer is armed (or callback is running, but > + * waiting for us to release rq locks). In any case, when it > + * will file (or continue), it will see running_bw of this s/file/fire ? > + * task migrated to later_rq (and correctly handle it). Is this because of dl_task_timer()->enqueue_task_dl()->task_contending() setting dl_se->dl_non_contending = 0 ? [...]