Re: [PATCH] sched - Implement priority and fifo support for SCHED_ISO

From: Con Kolivas
Date: Mon Jan 31 2005 - 15:34:40 EST


Jack O'Quin wrote:
Loading the realtime-lsm and then running with SCHED_FIFO *does* work
as expected on this kernel. I should retry the test with *exactly*
the expected patch sequence. What would that be?

Sure enough I found the bug in less than 5 mins, and it would definitely cause this terrible behaviour.

A silly bracket transposition error on my part :P

Cheers,
Con
Index: linux-2.6.11-rc2-iso/kernel/sched.c
===================================================================
--- linux-2.6.11-rc2-iso.orig/kernel/sched.c 2005-02-01 07:28:40.171079813 +1100
+++ linux-2.6.11-rc2-iso/kernel/sched.c 2005-02-01 07:29:21.332297160 +1100
@@ -326,9 +326,9 @@ static int task_preempts_curr(task_t *p,
goto out;
}
p_prio = ISO_PRIO;
+ }
if (iso_task(rq->curr))
curr_prio = ISO_PRIO;
- }
}
out:
if (p_prio < curr_prio)

Attachment: signature.asc
Description: OpenPGP digital signature