Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6102710ybi; Wed, 31 Jul 2019 08:23:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyM51lARvwdVhmBOUbb9Do65DQwaeyagE4CrIsUAbqyCiMYOSyMFujF/BOCUopYrxvAfqC0 X-Received: by 2002:a63:484a:: with SMTP id x10mr56145805pgk.430.1564586587565; Wed, 31 Jul 2019 08:23:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564586587; cv=none; d=google.com; s=arc-20160816; b=T8Ox+PN0tCQkaojWxPahgzdZVESaFXSjVCv7UqpxRCOWadYtiuPrJf7FXAZbpB1ZPX yHflLbyGkUL+KEB6n/ael28fZvN8LC41taazap1PE64OWuuOXw6UcoHgMtp7oUJE1YfC 7GI30KZ8nnfkNhOMQQ7L1u7VV0ITfeHoovjw9CwZSdzYr1HSBlqqYHNXFfVuHMJg8rQO S6nErKXTPFqA4gDDiO9W5JsX8f0+bz9QTsmIpsJjC0s9/sSA4W3Re/Mh6SOzfIRM3crd NxFTaZ6yYr2MdPL2c0zxoPUwIrg/5s1BckCfdT5pdN6GG6CPwuPGyf3jnUC92RsO4La1 oi4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=4XdTE48qogFttpS20WuiN5vSvLthVRbgCzfz+x/z4O8=; b=bWBQTNe2I8b191hKsfwmnmcvAbHNUssCc+j2C4WO2gfoOV7PUA1cKcjPn1UZjKtPOj aunt/+4tActbkcT8zpDBP035OtWN9pMPe6RjIKi5dcKc7k1XOm/bThuJoW1frk1x2EEu HR1FoC5kchviOSDFnAmKRqnGenI36ia6Lk7BdqN5i3Wbdu6U+IA6X4lBTLU/QWxYHJTI 3qz5S8pCUVS+doej2QiiN+HRVQZ9afVwyFDf6MG+nvh2qCrLU5cBceVGvzzyUu495SDd HvAVHue+66C1aJDY3EqTp7W+ZF2sU/5BthtHXJ5G5x0Bn42f+pbnlLhF7qaBj/TPVtZ2 EYIQ== 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 e35si24021905pge.300.2019.07.31.08.22.51; Wed, 31 Jul 2019 08:23:07 -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 S2387544AbfGaOZU (ORCPT + 99 others); Wed, 31 Jul 2019 10:25:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38430 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726079AbfGaOZT (ORCPT ); Wed, 31 Jul 2019 10:25:19 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B5FD53082129; Wed, 31 Jul 2019 14:25:19 +0000 (UTC) Received: from torg.hsv.redhat.com (ovpn-124-191.rdu2.redhat.com [10.10.124.191]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9769E60C4C; Wed, 31 Jul 2019 14:25:09 +0000 (UTC) Date: Wed, 31 Jul 2019 09:25:07 -0500 From: Clark Williams To: Juri Lelli Cc: tglx@linutronix.de, bigeasy@linutronix.de, rostedt@goodmis.org, linux-rt-users@vger.kernel.org, peterz@infradead.org, linux-kernel@vger.kernel.org, bristot@redhat.com Subject: Re: [RT PATCH] sched/deadline: Make inactive timer run in hardirq context Message-ID: <20190731092507.3c57d4db@torg.hsv.redhat.com> In-Reply-To: <20190731103715.4047-1-juri.lelli@redhat.com> References: <20190731103715.4047-1-juri.lelli@redhat.com> Organization: Red Hat, Inc MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Wed, 31 Jul 2019 14:25:19 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 31 Jul 2019 12:37:15 +0200 Juri Lelli wrote: > 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 > Acked-by: Clark Williams -- The United States Coast Guard Ruining Natural Selection since 1790