From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751597AbdB1SUe (ORCPT ); Tue, 28 Feb 2017 13:20:34 -0500 Received: from mail-qk0-f171.google.com ([209.85.220.171]:34890 "EHLO mail-qk0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751411AbdB1SUa (ORCPT ); Tue, 28 Feb 2017 13:20:30 -0500 Subject: Re: [PATCH V3 2/3] sched/deadline: Throttle a constrained deadline task activated after the deadline To: linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra References: <5b6fa3cd9da84b8883afc169f44df247b551a4df.1488271007.git.bristot@redhat.com> Cc: Juri Lelli , Tommaso Cucinotta , Luca Abeni , Steven Rostedt , Mike Galbraith , Romulo Silva de Oliveira From: Daniel Bristot de Oliveira Message-ID: <43aa3b8c-5f5a-50f9-0d3d-aac86c5fcd3f@redhat.com> Date: Tue, 28 Feb 2017 19:19:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <5b6fa3cd9da84b8883afc169f44df247b551a4df.1488271007.git.bristot@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/28/2017 11:07 AM, Daniel Bristot de Oliveira wrote: > + if (!pi_se->dl_throttled && dl_is_constrained(pi_se)) > + dl_check_constrained_dl(pi_se); > + me--, it should be &p->dl, not pi_se. This is not causing problems in the test case because pi_se = &p->dl, but this would be a problem if we were activating the task in a PI case: it would check the pi-waiter, not the task being awakened (p). In the dl_check_constrained_dl(), the patch is already avoiding throttling if the task is "dl_boosted." So it is ready to avoid throttling the task in the PI control. Cooking a v4, sorry for the noise. -- Daniel