Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp166460ybi; Thu, 1 Aug 2019 16:46:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxywB58+X2PsK9XNTWYJ0E4nCDP2eS4ZvBSdV4Nmi+xaDHG9BaFTdhhkmojPvPOwqKLwp0z X-Received: by 2002:aa7:9217:: with SMTP id 23mr57195408pfo.239.1564703196836; Thu, 01 Aug 2019 16:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564703196; cv=none; d=google.com; s=arc-20160816; b=Ab7eZgz6YCQI/rdAyvI8jKwxr6LBctMByo3D3xgDFFD22txUWr5ebOUvR11SAgRsk9 g+5o1kah94c1lLR3tnA7XnlfPPb8ZWkBVoYeRQZkOTvniEOQ4OXLmJrgcK4vpoFo1MRK PagS97HIRGcC42BxdUNu+9JLvh0qpn0lcKtSCIHOseBqQA5MQ9GBVwQhDNGvjSXydJAg UyaYt4LyhkFMBa9NzPrTOLNlWIFlG4yXnSz3QHBcKSC4tEX8ARfN0+p5+kXMMwCAwGgw edaYEg9LKuY93bgrdLT/9CjQSX4loqXcpnvH76UECV68I3Zh0AZ9LPbdtTxVRHv+Q53H tkyA== 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=tDEe8aFRwAXcNcOHMWAUpkj0SqUNKh8wuYSTiy1ip/I=; b=ZQ98WUvPkmG0dha4uzuXIDNMmzTRQmAJDgfwkIDyp7cAwpvOIwqBXEXO6zYI3VUbvC aDfOm18Lrtaul4ffZ/hlwuB2rsGye3wqnZucC8XbMrY1dl+0i0h3qz5fHaeU44cngm/o IYIaDY1DFUlpbi6wywtvXcfNwUGFMN/732Ny7t/EU2mmU+aR5fkoMfr1hhaUyeyaafY8 uAoDAs98G9MGOLmHrI+ACEuaAWv42qUHGcpu8t4m7fi0VIcmd6mTy+nTvR5H0tMZTGmA EZTMeggtrtiFYZLW7f13egnp+Z1azBzp8KzhPlUXT9jnW/X2ZN8voO9CcLGiecEqUfLk Ys4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019071901 header.b=fAeEVbzN; 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 i23si36242587pfa.196.2019.08.01.16.46.20; Thu, 01 Aug 2019 16:46:36 -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=fAeEVbzN; 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 S2388288AbfHATFl (ORCPT + 99 others); Thu, 1 Aug 2019 15:05:41 -0400 Received: from terminus.zytor.com ([198.137.202.136]:54359 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727899AbfHATFk (ORCPT ); Thu, 1 Aug 2019 15:05:40 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x71J5XuF071008 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 1 Aug 2019 12:05:33 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x71J5XuF071008 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019071901; t=1564686333; bh=tDEe8aFRwAXcNcOHMWAUpkj0SqUNKh8wuYSTiy1ip/I=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=fAeEVbzN7oBU1pFZvWCXT9sGvUQb3m0Spoj0XpEX2TumbUAj7Q9unTzXuk2LejnK3 v46hf+ofLad9toawN1eMo15s1dFnL4Mw35TOB+iO73HsQl9BUQFRpwbF2BNcUf6UD0 oT7xIeFNBw2QFDw/RSj6itQdHHCw0uHQ6BtKGMutW3UgEWhuARvVgOyJl3seQWVc9F DM4FQYVB4HQ0cvWtFcyKQRLdXJnNPnWhPdVfksuB3t2rZOvak3rbPfrMn+TEjq1/bL YB4IKTET1NPAlFZFS1n/Y4jVz4j0eD/FXhs+2xgwJdcPXGtZpV370sWYujnAnMtqhT GVe4ebe0xmjvw== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x71J5XFb071005; Thu, 1 Aug 2019 12:05:33 -0700 Date: Thu, 1 Aug 2019 12:05:33 -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: juri.lelli@redhat.com, linux-kernel@vger.kernel.org, hpa@zytor.com, tglx@linutronix.de, mingo@kernel.org Reply-To: mingo@kernel.org, tglx@linutronix.de, juri.lelli@redhat.com, hpa@zytor.com, linux-kernel@vger.kernel.org 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: 850377a875a481c393ce59111b0c9725005e0eb4 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: 850377a875a481c393ce59111b0c9725005e0eb4 Gitweb: https://git.kernel.org/tip/850377a875a481c393ce59111b0c9725005e0eb4 Author: Juri Lelli AuthorDate: Wed, 31 Jul 2019 12:37:15 +0200 Committer: Thomas Gleixner CommitDate: Thu, 1 Aug 2019 20:51:22 +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; }