Re: [rfc patch v4.4-rt2] sched: fix up preempt lazy forward port

From
Mike Galbraith <hidden>
Date
2016-01-19 05:14:50
Also in
lkml
Reply to
Mike Galbraith, 2016-01-19
On Tue, 2016-01-19 at 05:41 +0100, Mike Galbraith wrote:
On Mon, 2016-01-18 at 21:18 +0100, Sebastian Andrzej Siewior wrote:
quoted
quoted
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -3542,6 +3542,15 @@ asmlinkage __visible void __sched notrac
	if (likely(!preemptible()))
		return;

+#ifdef CONFIG_PREEMPT_LAZY
+	/*
+	 * Check for lazy preemption
+	 */
+	if (current_thread_info()->preempt_lazy_count &&
+	    !test_thread_flag(TIF_NEED_RESCHED))
+		return;
+#endif
+
And this is a new piece. So you forbid that tasks leave the CPU if
lazy_count > 0. Let me look closed why this is happening and if
this is
v4.1 … v4.4 or not.
That check wants a !rt_task(current) qualifier anyway.
(bah, -ESWILLMORECOFFEE)
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Thread (18 messages) 18 messages, 3 authors, last reply 2016-02-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help