Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5856508ybi; Wed, 31 Jul 2019 04:28:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWf2dj0nlcvzutxarRjUPIfn+zEFYABkhYDfXVDH3iQBZExKe171EOoIgkKODbscNITF/p X-Received: by 2002:aa7:8d88:: with SMTP id i8mr47766271pfr.28.1564572497101; Wed, 31 Jul 2019 04:28:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564572497; cv=none; d=google.com; s=arc-20160816; b=yVXSkPLEqNVGKAYkzV+OmduZv9u3FtcL1oChtd0KSd1SfcIS4C6D/5FniPwS5vOdyR ZqwKhf6pi33KNlIuN1bQZ0zlIEEdakVWaFSwQqloQVPMy1mm9Eujk7+wUhUtPyVMXwx/ gzDRKacPN0Nr91KsXJ8z3wc/DNJh1I1ox5DMACLpG4cwKp5o4vt1BW4goi4adHCXqtu4 6Xim4j+2XC8PMSF0rRXl+I15bi+uy8purmYZjZX1mw0XCj4p0rRrkgL82L44x6HySRWI +rXhmj9nk162QVcf1paKpeEWtQGBvUBMpyiENqcqBRJe3i98/OnHFgustWLe04W1O2kV 11bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=k8iV1zA5X3Fl6os5LyVIh5yLsEGaYfREzD+XcT87bP0=; b=thgwd54wDFPlwAMHhYBFRyWBGAPkR8zPf5W1q6ImFdmWXCW36QikQK62t9fEKeUhDN 4sKtZxQJ0FFx8zW3EWvDgZpiPqIYrucHcvhHT+aUZPfjguLgEB9+3IgTNbdyvXwmgWTq HfxzYufKYPsnXsFvqywHLoOMbuJYtLr/ahiDuKC6y7XdZU2bCPzrG0rbMZfGq+D+rtwu v6PNS7F+z3YYjsnhVCPNeheAwxl6ZzSifWyWj8N3LDqxI4BXpPl92W38UMMNi4fARGvl I0juYcwd9nnZH/7GjXFHNFuNEkzIOsoBBV1f6fnBw4apj+BYHfn9hXYJbMLhw/eyITlW O2Qw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 73si33348589pld.221.2019.07.31.04.28.02; Wed, 31 Jul 2019 04:28:17 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387733AbfGaKhk (ORCPT + 99 others); Wed, 31 Jul 2019 06:37:40 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33591 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726800AbfGaKhk (ORCPT ); Wed, 31 Jul 2019 06:37:40 -0400 Received: by mail-wr1-f66.google.com with SMTP id n9so69200325wru.0 for ; Wed, 31 Jul 2019 03:37:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=k8iV1zA5X3Fl6os5LyVIh5yLsEGaYfREzD+XcT87bP0=; b=HlX7JeTG3wxQGyIoLAfrdcJ/95IjAhtbeZWY7Lpv5ySkRNKfYbVzzHKm23RYkmw7G3 gT93IRa8Ph83/4OhV+0R9XZgPfJQt6S9o7kDCvKorlCFS9F4WwTMLoViUJiH+D3m2Cop I5OSFEzdneelNPil+emcOLhg8/j1HYc16GoSTfa8JMlnn1veus/7J4xgBvn0/SNJX58j uKlYFmtEPvWogUaQrexb7HO/Wt2vQSoqtmF1KTEytN8r4QWvgw9O+GgoQ9wYR3B6E3Uf LV0ZMFVi915gIbLu+yyn4LcDm19BpJXLQOOWUoN9y+oejBhALiSRRQrAqavCA5VwlTA1 fhFA== X-Gm-Message-State: APjAAAWZ8APB59CRT+bBt65ew3CTk8mraPhqIKepl+wVFVV099McEYBk Hm+QPsLe2MOADA6C7akr3JuOow== X-Received: by 2002:adf:ef49:: with SMTP id c9mr5644912wrp.188.1564569458406; Wed, 31 Jul 2019 03:37:38 -0700 (PDT) Received: from localhost.localdomain.com ([151.29.237.107]) by smtp.gmail.com with ESMTPSA id s2sm55015229wmj.33.2019.07.31.03.37.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jul 2019 03:37:37 -0700 (PDT) From: Juri Lelli To: tglx@linutronix.de, bigeasy@linutronix.de, rostedt@goodmis.org Cc: linux-rt-users@vger.kernel.org, peterz@infradead.org, linux-kernel@vger.kernel.org, bristot@redhat.com, williams@redhat.com, Juri Lelli Subject: [RT PATCH] sched/deadline: Make inactive timer run in hardirq context Date: Wed, 31 Jul 2019 12:37:15 +0200 Message-Id: <20190731103715.4047-1-juri.lelli@redhat.com> X-Mailer: git-send-email 2.17.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SCHED_DEADLINE inactive timer needs to run in hardirq context (as dl_task_timer already does). Make it HRTIMER_MODE_REL_HARD. Signed-off-by: Juri Lelli --- Hi, Both v4.19-rt and v5.2-rt need this. Mainline "sched: Mark hrtimers to expire in hard interrupt context" series needs this as well (20190726185753.077004842@linutronix.de in particular). Do I need to send out a separate patch for it? Best, Juri --- kernel/sched/deadline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 1794e152d888..0889674b8915 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -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; } -- 2.17.2