Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3217283imu; Wed, 7 Nov 2018 06:59:04 -0800 (PST) X-Google-Smtp-Source: AJdET5dWW+T15CyRrTRAJyNdi+N8X3ltkuM+5URevP34mU0u5iDipcK3sKTRkj8n4+Q+COF17p63 X-Received: by 2002:a17:902:ab83:: with SMTP id f3-v6mr543702plr.122.1541602744560; Wed, 07 Nov 2018 06:59:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541602744; cv=none; d=google.com; s=arc-20160816; b=R3GEqxSTM5lwF0rgJPpOBr2HrZefWvkPLTRNrjwAOJwVyYlQtaU93QKEsWY+z0uBao M9JR7WAd24Pw/umUWN+7TnesP6DMk2YTbbUBJyFMgK9TaanjV/0wdekg85kTf52tSSpS IyF0I/YLdo8GCtarbeL0mX8S7mWc6k/b8qKfXipEZkhuFILEdaKhA6udnW+Kh6HqFwHZ lvEHAk2uWkpAoVrg4OEj/6V2DCjBi/aVyDVjKKAsrnfCDSgkOjLwWei6z8WaD/pNoiD3 24Bax05Kvtf6Z0W+cvYHf+a4LFwlN7oycC0mBRnnsqzEgrX8L2k1uuAr/EDexu55RGUc f6mw== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=luyxLE3yzl+y++q2eULJQjjdW1g/WO0ZY1qjOXMuxGA=; b=gW1i8tMEdBtd2Su1lm9RCA1MsnKKapz+ykDwkSwrHgRkE9jjcq1ommz8DksfUKNzob lkC76/fykWr2dqUK4H6UpSuPAg+teIRXtfwjbBONp6aifCG4ye6tfCk8IeGEsGoNng6t T2VF/GyWjG6UbjMgxPb7imZy/CbIxfiblFsOCyoGrI/CdgdS6TMgtf3b7DKnEpEfAX8p jWvUkGyxGuxcOQYeB1ZE6kBMB86FYuxDD5y6///kRFumebCLvsRnUEKqtcdfIMQpfM/L +kGoLYcEK2qUwU3G2cd2nOhXFf473zDskCOc+WUzGCJCuAi3XrPxZ1+oZv73shroSmJm ziZA== 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 k184si717980pgd.342.2018.11.07.06.58.49; Wed, 07 Nov 2018 06:59:04 -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; 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 S1731146AbeKHA1M (ORCPT + 99 others); Wed, 7 Nov 2018 19:27:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:42278 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727693AbeKHA1L (ORCPT ); Wed, 7 Nov 2018 19:27:11 -0500 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F000C2086C; Wed, 7 Nov 2018 14:56:28 +0000 (UTC) Date: Wed, 7 Nov 2018 09:56:27 -0500 From: Steven Rostedt To: Juri Lelli Cc: peterz@infradead.org, mingo@redhat.com, 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 Subject: Re: [PATCH] kernel/time/posix-cpu-timers: Remove useless call to check_dl_overrun Message-ID: <20181107095627.13e9c187@gandalf.local.home> In-Reply-To: <20181107111032.32291-1-juri.lelli@redhat.com> References: <20181107111032.32291-1-juri.lelli@redhat.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 7 Nov 2018 12:10:32 +0100 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 > --- > 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); > - Hmm, I wonder if we should just move this check directly into run_posix_cpu_timers() directly. Why is it hidden in this call? -- Steve > /* > * If cputimer is not running, then there are no active > * process wide timers (POSIX 1.b, itimers, RLIMIT_CPU).