Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3224862imu; Wed, 7 Nov 2018 07:04:59 -0800 (PST) X-Google-Smtp-Source: AJdET5cwx1dSS+um9K9HYcg6fV8W8m2MRWo7IPvvvRjYftuLDrAeAb0k65VDJRU8kOjHiE+zFtJA X-Received: by 2002:a62:4784:: with SMTP id p4-v6mr526575pfi.257.1541603099259; Wed, 07 Nov 2018 07:04:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541603099; cv=none; d=google.com; s=arc-20160816; b=U4m4IZEjm5QPKKfa8SKxkbGEXHORk/QJV2XYorQ+19aFJI/nxAG4mteRXJL/0gnlDr 3tES8TwAxLzMqjrD7e8KFLcfqQo6NMJrchmI0O0UX8TwtBAxojclyRh2jg2IKCf7Ommp n0n+BxBWGAvcCSwdOlXqR4Ja2zKdrkxdVVHIpXQkYlNU5dyhVgkNugwTyEzswUE1l8n0 yPHAsQRsW2JpGwvz6k1nSeVtVIcBI/50YOI/AWi5EpwcGN7UtMuMQ0nFq9reqCJYxfTj KF0ruE3YEUCZFyrDO+6F9iw2zOlrus6oVqaoE0fZiIRcwcnCxEknSTpX+A9muBUxIcHT pAHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BajKpttSdO7/u9+SqfsSWgXtf+a5roYCBshOi+zDIoE=; b=Q34ioh3K62B9MVfInHEKU3gD3YHGO6iE+XiXln/N4kbTzX9SlePRqlYRotPfiBt8Ri aVRiU0BwMXCNje6rwUZP/u13ieeCtp1AnUGfPapYB1E+j9aIf6bXitiPAY0txrNH9fh3 ItS5wkBeyYqU+jZnfIE5MMAZC+TlqEj4+gpcSz9Oxf+Tl8UARQtsq2ykLlGOyajetlcb gINfMO+xGSfIbnmOpPA5uaWZSBYekAQ4Ww55emuWt+OkIUithQ4IcxKBbuWIMIb071Pv fhygJjAhZYZ3tl68BYecphxwL0StB0oijWUk9I8z5HGj84KihSZK4Z9M3OJyhiGlfmOs M3KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=teBd8OLT; 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 m3-v6si827337pfm.118.2018.11.07.07.04.43; Wed, 07 Nov 2018 07:04:59 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=teBd8OLT; 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 S1731092AbeKHAdP (ORCPT + 99 others); Wed, 7 Nov 2018 19:33:15 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:39628 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728023AbeKHAdO (ORCPT ); Wed, 7 Nov 2018 19:33:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=BajKpttSdO7/u9+SqfsSWgXtf+a5roYCBshOi+zDIoE=; b=teBd8OLTjDM6u7Dj5SPgIGPGH sq1f81gjG0CGgek4t+6tUdmPzfRxai9NdmiFoZuztBE4GQGGmxwg4Cn2NHuCA20VgOdRqju6i6I0J O4H9b2J2y4S/v6tcIBc0qk7OuMGhH+IaKoiKZIr6MGrZmMA4d4PfQmSe6RsDFOTArwCN5MDbIVwvf sghwIQQTz2yBn9xTNlDI9aJqyAuWP5rHRdnDx3C8SuAetC07z4YpmDfM2V+cNCPjxBSAktfu2/CgO MXVCuC2jbQBlInALAFyo75DZGDdx8pZKRdpPWi8acObalLW34DVkUWbtE7vdoOSPIuAz3LLagKzyV pjkWW+k7w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKPLc-0004Zd-EV; Wed, 07 Nov 2018 15:02:24 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id D4E0F20284F94; Wed, 7 Nov 2018 16:02:21 +0100 (CET) Date: Wed, 7 Nov 2018 16:02:21 +0100 From: Peter Zijlstra To: Steven Rostedt Cc: Juri Lelli , 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: <20181107150221.GJ9761@hirez.programming.kicks-ass.net> References: <20181107111032.32291-1-juri.lelli@redhat.com> <20181107095627.13e9c187@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181107095627.13e9c187@gandalf.local.home> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 07, 2018 at 09:56:27AM -0500, Steven Rostedt wrote: > 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? It is not; it is duplicated in this call. The one in check_thread_timeres() makes sense (it is a thread property).