aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/lpddr/lpddr_cmds.c
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2010-01-20 20:59:06 +0000
committerThomas Gleixner <[email protected]>2010-01-22 18:09:59 +0100
commit60db48cacb9b253d5607a5ff206112a59cd09e34 (patch)
tree7fc9be93263ae40381cdafe3cb31c4521e88f2dd /drivers/mtd/lpddr/lpddr_cmds.c
parent37dad3fce97f01e5149d69de0833d8452c0e862e (diff)
sched: Queue a deboosted task to the head of the RT prio queue
rtmutex_set_prio() is used to implement priority inheritance for futexes. When a task is deboosted it gets enqueued at the tail of its RT priority list. This is violating the POSIX scheduling semantics: rt priority list X contains two runnable tasks A and B task A runs with priority X and holds mutex M task C preempts A and is blocked on mutex M -> task A is boosted to priority of task C (Y) task A unlocks the mutex M and deboosts itself -> A is dequeued from rt priority list Y -> A is enqueued to the tail of rt priority list X task C schedules away task B runs This is wrong as task A did not schedule away and therefor violates the POSIX scheduling semantics. Enqueue the task to the head of the priority list instead. Reported-by: Mathias Weber <[email protected]> Reported-by: Carsten Emde <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Tested-by: Carsten Emde <[email protected]> Tested-by: Mathias Weber <[email protected]> LKML-Reference: <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions