linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3.4.62-rt77] fix irq thread scheduling
@ 2013-09-19  9:02 Thomas Pfaff
  2013-10-04 14:05 ` Sebastian Andrzej Siewior
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Pfaff @ 2013-09-19  9:02 UTC (permalink / raw)
  To: tglx, linux-rt-users, rostedt

If an irq is requested during device open, for example by opening a serial 
device, then request_irq is called in the context of the opening process.
If the process lacks off CAP_SYS_NICE the irq thread is running with SCHED_OTHER 
priority.

The problem exists in other real time patches as well, 3.10 seems to be ok.

Signed-off-by: Thomas Pfaff <tpfaff@pcs.com>
---
diff -urp linux-3.4.62-rt.old/kernel/irq/manage.c linux-3.4.62-rt/kernel/irq/manage.c
--- linux-3.4.62-rt.old/kernel/irq/manage.c	2013-09-16 10:13:15.365559288 +0200
+++ linux-3.4.62-rt/kernel/irq/manage.c	2013-09-19 10:22:40.092831656 +0200
@@ -1024,7 +1024,7 @@ __setup_irq(unsigned int irq, struct irq
 			goto out_mput;
 		}
 
-		sched_setscheduler(t, SCHED_FIFO, &param);
+		sched_setscheduler_nocheck(t, SCHED_FIFO, &param);
 
 		/*
 		 * We keep the reference to the task struct even if

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-10-11 10:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-19  9:02 [PATCH 3.4.62-rt77] fix irq thread scheduling Thomas Pfaff
2013-10-04 14:05 ` Sebastian Andrzej Siewior
2013-10-08 13:58   ` Thomas Pfaff
2013-10-08 14:12     ` Thomas Pfaff
2013-10-11 10:58     ` Sebastian Andrzej Siewior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).