Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5859819ybi; Wed, 31 Jul 2019 04:31:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxviYvjoGv4d2YLPzViDI66Uzy67+OQHupuO7B2gh67zbfUbeODq9E+E9fZNarnC9R5LrMD X-Received: by 2002:a17:90a:d14a:: with SMTP id t10mr2515995pjw.85.1564572689058; Wed, 31 Jul 2019 04:31:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564572689; cv=none; d=google.com; s=arc-20160816; b=1Hf+xM8G+BrPhel1hzEu7XRtNutAvEMP8KcMaT+stvnLfOo/yw5MpT55x4+VkrYF9c VZA7FjFqMxYX9r/r7GeYlI8b4I/riHqlz1KvxEjFKMnIckmvTHZcOCcXZcfrfTOnI3Lx UxlnRnmM/GIsSul2dW1sFnzt1RrUHEtCymujXKQBC6rwLDRK1ybq8f4gHC+pdQrJghTX 264PxPUMtGoKNMcq47qYYLPHo7jcGxjayUErwzNge+0Sk8nPK0CgeV+Bow4lAxDdrraK J95yKUJvvZHNjgK3UAWV33IcakvIpE7KFosmuIThdB5Vp8Eylx5DoP96B+YWC+Iz599f /8LA== 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=qau+9mBfFzobTAWVjgcWejzrE1fSf0Nn9rSurgLYng8=; b=bnv4eopy31DiSIoJdFuCvfDTv8SUi51YN6Ro+mTo8z0zdIc2lpXpCB0mqSHCLIrLOf N45jh3Lijh6p0NSfKgp3z0XN981lr6OiGjZuhxMbBZ1d9buKXV8DXb0pm8ckrff0nAoM f5Ph7pGBFbBXLvuPkWpQnIN/mADZWk+ZVGa+56JrMn1IgKKvfBhUv1q6ztJIdhuSZWBY Rhb1HcR69TTWBA3za7WafycRTsz3c8p9UOohbmKI0g0sr/tS42N+qdV4P218XjuwJi6p FwHTBMCaSXBQpQc1dRKAlkUUu7xao2a8I+Ymg8RrIsvHzsypigcxhPVlmq51qFkm0Acq oKZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019071901 header.b=yXvNHivI; 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 q187si31176690pfb.51.2019.07.31.04.31.13; Wed, 31 Jul 2019 04:31:29 -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=yXvNHivI; 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 S1727960AbfGaLHx (ORCPT + 99 others); Wed, 31 Jul 2019 07:07:53 -0400 Received: from terminus.zytor.com ([198.137.202.136]:52321 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725935AbfGaLHx (ORCPT ); Wed, 31 Jul 2019 07:07:53 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x6VB7LPl3643621 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 31 Jul 2019 04:07:21 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x6VB7LPl3643621 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019071901; t=1564571241; bh=qau+9mBfFzobTAWVjgcWejzrE1fSf0Nn9rSurgLYng8=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=yXvNHivIAbjQVSUXZRLwtXFVRPavn1BiX46khZELsuVxkT5EOuPpejIVc4ae02DSU 2FnWKglYHtJ8iN2ds31t5isQPO30ay9nEBmXgs0ABKj9/gVZN7JjaIBTEHPFZFLkYe 9HFe0PQX8UzKawOUuCFvaSWuRNkEjATD1uQNhJPGVqE+zP0JxpuPy7sCaIdRpqex58 bqv5ngdXxjURDpc2XkH7901Tm8c4vx7oNztsd75UNH2wkQd92OPGC/WOUjde3XrZo6 yCCQGOxaoDdWp+Lv80MjyeRlCgTa4enoUGh8TPQOqKnFgDf+1Krk7c3kbAzQCc0ytu z7XRWXCmH7/wQ== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x6VB7KZO3643618; Wed, 31 Jul 2019 04:07:20 -0700 Date: Wed, 31 Jul 2019 04:07:20 -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, mingo@kernel.org, hpa@zytor.com, tglx@linutronix.de, juri.lelli@redhat.com Reply-To: juri.lelli@redhat.com, tglx@linutronix.de, hpa@zytor.com, mingo@kernel.org, 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: b223cc1bb098ebd1077a5390c434db411806d6b8 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: b223cc1bb098ebd1077a5390c434db411806d6b8 Gitweb: https://git.kernel.org/tip/b223cc1bb098ebd1077a5390c434db411806d6b8 Author: Juri Lelli AuthorDate: Wed, 31 Jul 2019 12:37:15 +0200 Committer: Thomas Gleixner CommitDate: Wed, 31 Jul 2019 13:01:26 +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; }