Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2331768ybv; Fri, 21 Feb 2020 13:28:22 -0800 (PST) X-Google-Smtp-Source: APXvYqwcroeR023eLgGb6mHjP7xLi0hNBumG76YamVQOaxgxZx1d4nEi9PpiMH/qUofmSzJ6JPkh X-Received: by 2002:a9d:7508:: with SMTP id r8mr29785094otk.116.1582320502619; Fri, 21 Feb 2020 13:28:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582320502; cv=none; d=google.com; s=arc-20160816; b=Hrqre+LfJpteunWK6NzwLmFiSr7xSQ4mXjEDSxrUHOfVPcMZJ5bDapbdHnEuFezAYK ppXYoW+7zxRdDY5vsHfLslH6zleeDEkTQTiKTf+TCnn7QjHYw6RjsRk00FWJjfwN+o4f yN9ruaKNnlDxZdzadOZQIORNpEH2SIZnRVmBqIz/3ps+5YCBBzFgZHG8gPciou1aBDdF MZYh+ZWlvRKMc0enJ4KdZISry87HUuOvZGbTTO5ZL7um4dKT6zElyjPefOiKBvJUl7d9 aBev4u1W7bGoaMlklNPyWX3RtBR8HzmGFkDO4aq2/1Wp5T4wiMeaDncEY1q+k4EP86mX GNyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:to:from:dkim-signature; bh=G6cot8sqftbx1fqX1pBzWkzQ4BW648I5eFfQIjIxrKU=; b=Bq22kSdzfx+BgqOLZUlkCV05DKVHpBfvqiiWLOKpFlxuUH+k7rqsyenP2NQ6GHUyDp QUjFqbaG/fipL1hILrasdgYLKskH+ZPq1Lj3c7MmK2oQhgYFH/kKEI4T2//LoJ+Y+K5Z jjEpiz900lQbvpJ/WVpOfNmVretiz6fnrZRnxhJVZkpm6iPgNlXRmfQuBOhbeIxQJ2TJ 0sLPBvn3hm35OY2SdZmI+FDHPhq9yUEfmZArQQ5dZB3TCFF9glvDuiyqTrrHSi6uTkD9 hi5NeBMaax1fvf8BDTMqoG7MyPAlfdIsvICivoPoWQfJbWw4JqisvZpMirO6/QPr+WOO XCAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bzGE6TBD; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x11si2062074otp.285.2020.02.21.13.28.10; Fri, 21 Feb 2020 13:28:22 -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=pass header.i=@kernel.org header.s=default header.b=bzGE6TBD; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729859AbgBUV07 (ORCPT + 99 others); Fri, 21 Feb 2020 16:26:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:39036 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728745AbgBUVZS (ORCPT ); Fri, 21 Feb 2020 16:25:18 -0500 Received: from localhost.localdomain (c-98-220-238-81.hsd1.il.comcast.net [98.220.238.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4C32724656; Fri, 21 Feb 2020 21:25:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582320318; bh=uHCUX8XBDJdEPhvPI5BGTgSTzCMMQv9TwfPe4ivWfRs=; h=From:To:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=bzGE6TBD685FDCwhUiWC+dQlS7NbMcmMrnDIVUDiKXGfq0C2mxzOlpFlrzwal1x5H uqFzo2dS62x1VRWazPktYhvHrE+o9jXdCyBLJjW1aP8nCcN8o8CurwN6II99a3+4ed KVkt8eYc3u4fNUd26I/SSsh2d0xbWh4e6nKlKvIM= From: zanussi@kernel.org To: LKML , linux-rt-users , Steven Rostedt , Thomas Gleixner , Carsten Emde , John Kacur , Sebastian Andrzej Siewior , Daniel Wagner , Tom Zanussi Subject: [PATCH RT 03/25] sched/deadline: Ensure inactive_timer runs in hardirq context Date: Fri, 21 Feb 2020 15:24:31 -0600 Message-Id: <11a532007a600928e64e761722da7100e19a0c5f.1582320278.git.zanussi@kernel.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Juri Lelli v4.14.170-rt75-rc1 stable review patch. If anyone has any objections, please let me know. ----------- [ Upstream commit ba94e7aed7405c58251b1380e6e7d73aa8284b41 ] 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 Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Tom Zanussi --- 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 eb68f7fb8a36..7b04e54bea01 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -252,7 +252,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) @@ -1234,7 +1234,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; } -- 2.14.1