diff options
| author | Syed Rameez Mustafa <rameezmustafa@codeaurora.org> | 2014-06-24 18:08:51 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 19:59:48 -0700 |
| commit | 320e5d6710d39fa497daabaf407b6fc6a6e52377 (patch) | |
| tree | 195a26dfd4490542a554b6c1272bb8461c47a77f /kernel/sched/debug.c | |
| parent | d8b394131342487d5a42e4dafda6240c204f064b (diff) | |
sched: Disable interrupts when holding the rq lock in sched_get_busy()
Interrupts can end up waking processes on the same cpu as the one for
which sched_get_busy() is called. Since sched_get_busy() takes the rq
lock this can result in a deadlock as the same rq lock is required to
enqueue the waking up task. Fix the deadlock by disabling interrupts
when taking the rq lock.
Change-Id: I46e14a14789c2fb0ead42363fbaaa0a303a5818f
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
Diffstat (limited to 'kernel/sched/debug.c')
0 files changed, 0 insertions, 0 deletions
