diff options
author | Juri Lelli <[email protected]> | 2015-03-31 09:53:36 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2015-04-02 17:42:56 +0200 |
commit | 4cd57f97135840f637431c92380c8da3edbe44ed (patch) | |
tree | 3978d002c4b4faf47990a6de7a53af7345b86253 /fs/jbd/commit.c | |
parent | 07c54f7a7ff77bb47bae26e566969e9c4b6fb0c6 (diff) |
sched/deadline: Always enqueue on previous rq when dl_task_timer() fires
dl_task_timer() may fire on a different rq from where a task was removed
after throttling. Since the call path is:
dl_task_timer() ->
enqueue_task_dl() ->
enqueue_dl_entity() ->
replenish_dl_entity()
and replenish_dl_entity() uses dl_se's rq, we can't use current's rq
in dl_task_timer(), but we need to lock the task's previous one.
Tested-by: Wanpeng Li <[email protected]>
Signed-off-by: Juri Lelli <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Kirill Tkhai <[email protected]>
Cc: Juri Lelli <[email protected]>
Fixes: 3960c8c0c789 ("sched: Make dl_task_time() use task_rq_lock()")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions