From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755711AbbFQTwi (ORCPT ); Wed, 17 Jun 2015 15:52:38 -0400 Received: from smtprelay0085.hostedemail.com ([216.40.44.85]:56563 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752334AbbFQTw2 (ORCPT ); Wed, 17 Jun 2015 15:52:28 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2689:3138:3139:3140:3141:3142:3352:3865:3867:3871:3872:3873:4250:4321:5007:6261:7875:7903:8784:9707:10004:10400:10848:11026:11473:11658:11914:12043:12291:12296:12517:12519:12555:12679:12683:12740:13069:13255:13311:13357:14096:14097:14394:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: wall14_6c9fc69444827 X-Filterd-Recvd-Size: 1895 Date: Wed, 17 Jun 2015 15:52:25 -0400 From: Steven Rostedt To: Sebastian Andrzej Siewior Cc: Thomas Gleixner , LKML , linux-rt-users , Peter Zijlstra Subject: [PATCH][RT 4.1] sched/rt: Have the schedule IPI irq_work run in hard irq context Message-ID: <20150617155225.0fa2f6f4@gandalf.local.home> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Sebastian, you'll need this for porting to 4.1 ] As the sched rt pull work has moved to using irq_work IPI, having it delayed to threading pretty much defeats the purpose. The handle also expects interrupts to be disabled when called as it takes the rq locks. Set the rt push ipi irq_work handle flag HARD_IRQ Signed-off-by: Steven Rostedt --- kernel/sched/rt.c | 1 + 1 file changed, 1 insertion(+) Index: linux-test.git/kernel/sched/rt.c =================================================================== --- linux-test.git.orig/kernel/sched/rt.c 2015-06-17 09:30:02.430137824 -0400 +++ linux-test.git/kernel/sched/rt.c 2015-06-17 15:30:57.543881386 -0400 @@ -90,6 +90,7 @@ void init_rt_rq(struct rt_rq *rt_rq) rt_rq->push_cpu = nr_cpu_ids; raw_spin_lock_init(&rt_rq->push_lock); init_irq_work(&rt_rq->push_work, push_irq_work_func); + rt_rq->push_work.flags |= IRQ_WORK_HARD_IRQ; #endif #endif /* CONFIG_SMP */ /* We start is dequeued state, because no RT tasks are queued */