Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3179712imu; Wed, 7 Nov 2018 06:24:41 -0800 (PST) X-Google-Smtp-Source: AJdET5d4F86Xnyzx7vioR2QGwn/kREUBuy2GMYglRzX7RJRlEGVXu/sWP1XolyMQNMrLbpIaIsA5 X-Received: by 2002:a63:7541:: with SMTP id f1-v6mr306812pgn.231.1541600680954; Wed, 07 Nov 2018 06:24:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541600680; cv=none; d=google.com; s=arc-20160816; b=t70lPMpHegHDojVnZVArK3QWuxMXhd5yog7HcPmm2B7UYAnlI/FnNwpLEPswherKYo WNDBaiXeL8DIr9kVbgv4344b5UTp4fHmhpGiMjbLhpQ6IL5eRJGeIcYNyg2Q2Abg4D2m /rvyml/neNyBisIo9UkQfoXb9z9bXcKYipyIsZLb8Vg82YiudzBR2xDnc/IupvPvpGaY 9AAigiwaY2tGFaeyOsT8N/LCnxYX3j+nVDpmqmwO3anDYlfOe6FJ6sC+86pKB0VpWUCK FlnUieF1omeMoYp5VUAkyA+FtySVha/c4ta5c6qe7RHjAuRym0KjACAWZa5UnlEWg2Ut 3KTg== 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:dkim-signature; bh=kA3lKBOvwG4+u9puoQFNp/cFMgxxLQVT+qFszYb0Y0w=; b=ruxgyTpIf3iTUY2Vcf+08DNlilWrA1xIezzB1izr7jxgW1bTxlWivxW961o5bqHC36 Cy9WQtpCmyez8NeS/AdfePHCgVq4i6rGP/NoeEnFibUhuWUZlAmwwp2Lj/mcs/vjI6ED qn6o2d/AjdeJbnuGFgJX6TU/VYcfilc+tySwIUh8dQG+JPWP4gMX4qr7qmKSL3AWAYHg PZy9d3SB28Os8OvrqHHRiHHN3KIFMIfoyNd0GxIHocm6JaoHvq37TXc0TZXOuZSQAjkT hPENZ9NuolnOUZdCkrHLRBnXTlXNDFF3kbTGjX/cnmafGde0twkQ1/GZ/kkRKbbP3z+2 ytpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dkim.kinghost.net header.s=king1 header.b=liaR9XN3; 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 h1-v6si739761pld.332.2018.11.07.06.24.24; Wed, 07 Nov 2018 06:24:40 -0800 (PST) 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; dkim=pass header.i=@dkim.kinghost.net header.s=king1 header.b=liaR9XN3; 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 S1727745AbeKGXyh (ORCPT + 99 others); Wed, 7 Nov 2018 18:54:37 -0500 Received: from smtp-sp200-202.kinghost.net ([177.185.200.202]:37728 "EHLO smtp-sp200-202.kinghost.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726688AbeKGXyh (ORCPT ); Wed, 7 Nov 2018 18:54:37 -0500 X-Greylist: delayed 357 seconds by postgrey-1.27 at vger.kernel.org; Wed, 07 Nov 2018 18:54:35 EST Received: from smtp200-farm64.kinghost.net (smtp200-farm64 [127.0.0.1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp-sp200-202.kinghost.net (Postfix) with ESMTPS id 7A41C142BE512; Wed, 7 Nov 2018 12:18:03 -0200 (BRST) Received: from smtpi-sp-232.kinghost.net (smtpi-sp-232.kinghost.net [177.185.201.232]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp200-farm64.kinghost.net (Postfix) with ESMTPS id 75A59191B0E0C; Wed, 7 Nov 2018 12:18:03 -0200 (BRST) Received: from t460s.bristot.redhat.com (unknown [87.18.205.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: daniel@bristot.eti.br) by smtpi-sp-232.kinghost.net (Postfix) with ESMTPSA id D36526000DA8; Wed, 7 Nov 2018 12:17:52 -0200 (-02) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dkim.kinghost.net; i=@dkim.kinghost.net; q=dns/txt; s=king1; t=1541600280; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding : subject : from : date; bh=kA3lKBOvwG4+u9puoQFNp/cFMgxxLQVT+qFszYb0Y0w=; b=liaR9XN36gQz0WVZsxFbNXl9apLSJEFSVhHHerD/DnUiyjyzCXbCazoO fiuR2zIsv4RMeoInLsmjiEmW3rWOEBSHwZg+ju52faZA29KI/pQfX6WcA6 LzPiYjHn61o+R44OZkazBW1HEcsKXK0SoGg/yCpYteOP7wUekchkZW7VA= Subject: Re: [PATCH] kernel/time/posix-cpu-timers: Remove useless call to check_dl_overrun To: Juri Lelli , peterz@infradead.org, mingo@redhat.com Cc: rostedt@goodmis.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, luca.abeni@santannapisa.it, claudio@evidence.eu.com, bristot@redhat.com, linux-rt-users@vger.kernel.org, mtk.manpages@gmail.com, Mathieu Poirier References: <20181107111032.32291-1-juri.lelli@redhat.com> From: Daniel Bristot de Oliveira Message-ID: Date: Wed, 7 Nov 2018 15:17:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181107111032.32291-1-juri.lelli@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SND-ID: E3DhL4HZvWApxdeEu0+R3k19tF2vhIUMcvigv4x0qidpkEMv/61pVU+Ic2kX C2E5z/9xJ4WEtUyKW/eV3FZ7zrr9PQye0jkYrclvxeSQHWGy9TjpD0mQkndy oK2kvcFmZUsSA5pWn7C0bU4lAZlDgR1lRd3M+qg3U9a4Z2s0n1bWc/dYSo8E VsEpLYIaEGcmkEQK7yWp5XHdFIqFB5ZVz1or8CFqHiVAdspPX6vKEfXAPlqr txM8ISWpr1ms/9sqtMtIMkGCRIXj2qLzHWpORA9do1vP6HnSZ8CXpTqvK43u +i/OuXC7eixJPBRWaJXY2xT7Bx44FP5HgPXjZ3vwWrZtK87GThPnktE2CFNw 7ZIrKcOabO1iDU1zSUosB1TR8eHapzBdbMnxOavlg1ezd2UZ0/vVb9KOIQnS 7yuXRmDD+7zjjEwLPDi75pLnDx9J657I87woQ+nAwAxKDpdADwu50d50jzN2 Ws7P4TTMori37Y30ydQSxPehYQSrWEB/Y1lpZiNxUHYi89bwTTGY73e/shNZ QTUHrf+jxPZrOj2XkekbJfo0Pge8cHshz8VPGdI/vVFc9bDfJQln52Y5JQSO w6jv9XIu6VQ4Ww/oMyLRAiljIwoF0kJZpqsJVVlxcTz31sWszEdVeUpmbtiq TaImq3IW9fVt/uIur0+2raf7+klNVGaPk43wcIAYrO/ihEuygQ+tfzF/FLyB lYvCljZ/o51DRKc3OBxwB86dkl8Yn1QXnriXq+TZV0HmYnvr Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/7/18 12:10 PM, Juri Lelli wrote: > check_dl_overrun is used to send a SIGXCPU to users that asked to be > informed when SCHED_DEADLINE runtime overruns occur. > > The function is called by check_thread_timers already, so the call in > check_process_timers is redundant/wrong (even though harmless). > > Remove it. > > Fixes: 34be39305a77 ("sched/deadline: Implement "runtime overrun signal" support") > Signed-off-by: Juri Lelli > Cc: Peter Zijlstra > Cc: Thomas Gleixner > Cc: Luca Abeni > Cc: Claudio Scordino > Cc: Mathieu Poirier Reviewed-by: Daniel Bristot de Oliveira Thanks! -- Daniel > --- > kernel/time/posix-cpu-timers.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/kernel/time/posix-cpu-timers.c b/kernel/time/posix-cpu-timers.c > index ce32cf741b25..8f0644af40be 100644 > --- a/kernel/time/posix-cpu-timers.c > +++ b/kernel/time/posix-cpu-timers.c > @@ -917,9 +917,6 @@ static void check_process_timers(struct task_struct *tsk, > struct task_cputime cputime; > unsigned long soft; > > - if (dl_task(tsk)) > - check_dl_overrun(tsk); > - > /* > * If cputimer is not running, then there are no active > * process wide timers (POSIX 1.b, itimers, RLIMIT_CPU). >