Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp97909ybi; Thu, 1 Aug 2019 15:21:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxd8EGq6kJixLrcrtsnbA/6WfBpBVKp3BjPpg0qx+7gerKFUJWTGm6TnwD3+mVZjGtip3gq X-Received: by 2002:a17:902:112c:: with SMTP id d41mr117400878pla.33.1564698090339; Thu, 01 Aug 2019 15:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564698090; cv=none; d=google.com; s=arc-20160816; b=a4Gtbj2WYyRb8su1YxLtYMWVCZ7r34FH0+mhxQmfErOB2rkS0GKbngDJY4RyxSPf0W B2FhN3o66QBZ+ODCClLh2hogpPc97DtMHfz606Nm3UWNl6sdsFYqfsROg8NM/ZWf9bxg eGeCPHnPtgT8bYExR8INhefrH6lDF7VUfPR7GFb+f/N8VeF2wY7rT/MTYviGTnW3g1JC Iq/0biMNgAWndGsHT7QBi5slMzY1eFxIc2Nx90l2iaXjfZKQ7mpfyuWAM4iXXOie0Fts JxKCI6TMunTGMJFQe4peXRdJDF8D2Wn4aWsyPQ7zoj2kYPEhhR5B6vhsGsyQ8y8N5sem V1Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=jSY/0wFUAVazotwIxttbJMiNiH4+Xh4HtIYT3ctqoAQ=; b=BCKDU4jwcFsY8cM3d6SG7VvYDIgq0P3hISLJj4SuNx7tsxkLR8jBw6AbZMvQKgkWSn qG8qqWyTLFC7FHIUu4GNSmYJzM52dVXclW4c2jUahgaOaYLwXwM3ccS91UtVGara0lFM 6rnOyBbC8BW40DO4ZR0KS+oDq28Su06jR1W0T8RsOoknGHHaM3BrQeXHs9515LnBB8Nh uf4wgqEDRa3u9024CqC2azhxZh47WyGKzQHz/eEGBXwIPqTgKTTDAy7CQKJqq/rVj709 5xQoNo9MU7y8iNBkwJf8PvXlhQy+NfTaYEBRxfFgPYZeZAirKICQBpORA2TfVP1TLcga waqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019071901 header.b="N/4C99ga"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p8si31955394plq.53.2019.08.01.15.21.15; Thu, 01 Aug 2019 15:21:30 -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; dkim=pass header.i=@zytor.com header.s=2019071901 header.b="N/4C99ga"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732524AbfHAQAf (ORCPT + 99 others); Thu, 1 Aug 2019 12:00:35 -0400 Received: from terminus.zytor.com ([198.137.202.136]:59433 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729117AbfHAQAf (ORCPT ); Thu, 1 Aug 2019 12:00:35 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x71G0SGK006734 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 1 Aug 2019 09:00:28 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x71G0SGK006734 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019071901; t=1564675228; bh=jSY/0wFUAVazotwIxttbJMiNiH4+Xh4HtIYT3ctqoAQ=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=N/4C99gazAVBjNczKg9nCdDut/8sIP1Y7JiYLX+zQD23czMtG4Et8na4GS5O/ZvH2 NogoZk1ukytqlgzFfyRsBreJnSIcu4c+P61C9ydVbMigm952BbVjt8AFiQ5+x+ZJnq EhYyB3cfIaiL8FRSiLnWZm5GZ4kt0FVlBa34o+usAmVJ5Y6HCy93m3xDlIu8TpLzhM tjkCqWT1j+VekdSu0v5sZZLG06mcBQyLR/um0c2YMi998lLHA/rXd6Dp+USwwD/FXR Turf/bp63UjmdPqmwrE8Ne6VW46psnpS6s10zzkeHqC8k9hf9hu69mPze5cu/oXw1p iwgiEh/S0JGWg== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x71G0RAt006731; Thu, 1 Aug 2019 09:00:27 -0700 Date: Thu, 1 Aug 2019 09:00:27 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Juri Lelli Message-ID: Cc: linux-kernel@vger.kernel.org, juri.lelli@redhat.com, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de Reply-To: hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, juri.lelli@redhat.com In-Reply-To: <20190731103715.4047-1-juri.lelli@redhat.com> References: <20190731103715.4047-1-juri.lelli@redhat.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:timers/core] sched/deadline: Ensure inactive_timer runs in hardirq context Git-Commit-ID: 4394ba872c36255d25c6bde151b061f04655ebfb X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 4394ba872c36255d25c6bde151b061f04655ebfb Gitweb: https://git.kernel.org/tip/4394ba872c36255d25c6bde151b061f04655ebfb Author: Juri Lelli AuthorDate: Wed, 31 Jul 2019 12:37:15 +0200 Committer: Thomas Gleixner CommitDate: Thu, 1 Aug 2019 17:43:20 +0200 sched/deadline: Ensure inactive_timer runs in hardirq context SCHED_DEADLINE inactive timer needs to run in hardirq context (as dl_task_timer already does) on PREEMPT_RT Change the mode to HRTIMER_MODE_REL_HARD. [ tglx: Fixed up the start site, so mode debugging works ] Signed-off-by: Juri Lelli Signed-off-by: Thomas Gleixner Link: https://lkml.kernel.org/r/20190731103715.4047-1-juri.lelli@redhat.com --- kernel/sched/deadline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 0359612d5443..83a663a34196 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -287,7 +287,7 @@ static void task_non_contending(struct task_struct *p) dl_se->dl_non_contending = 1; get_task_struct(p); - hrtimer_start(timer, ns_to_ktime(zerolag_time), HRTIMER_MODE_REL); + hrtimer_start(timer, ns_to_ktime(zerolag_time), HRTIMER_MODE_REL_HARD); } static void task_contending(struct sched_dl_entity *dl_se, int flags) @@ -1292,7 +1292,7 @@ void init_dl_inactive_task_timer(struct sched_dl_entity *dl_se) { struct hrtimer *timer = &dl_se->inactive_timer; - hrtimer_init(timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); + hrtimer_init(timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD); timer->function = inactive_task_timer; }