summaryrefslogtreecommitdiffstats
path: root/security/selinux/include
diff options
context:
space:
mode:
authorPeter Williams2006-07-10 13:43:51 +0200
committerLinus Torvalds2006-07-10 22:24:13 +0200
commit0a565f7919cfb3d3df2c97d45751cbb83d858f97 (patch)
treecc1294f43b1e14dbc5a69a9624b69a48eec78bd1 /security/selinux/include
parent[PATCH] count_vm_events() fix (diff)
downloadkernel-qcow2-linux-0a565f7919cfb3d3df2c97d45751cbb83d858f97.tar.gz
kernel-qcow2-linux-0a565f7919cfb3d3df2c97d45751cbb83d858f97.tar.xz
kernel-qcow2-linux-0a565f7919cfb3d3df2c97d45751cbb83d858f97.zip
[PATCH] sched: fix bug in __migrate_task()
Problem: In the function __migrate_task(), deactivate_task() followed by activate_task() is used to move the task from one run queue to another. This has two undesirable effects: 1. The task's priority is recalculated. (Nowhere else in the scheduler code is the priority recalculated for a change of CPU.) 2. The task's time stamp is set to the current time. At the very least, this makes the adjustment of the time stamp before the call to deactivate_task() redundant but I believe the problem is more serious as the time stamp now holds the time of the queue change instead of the time at which the task was woken. In addition, unless dest_rq is the same queue as "current" is on the time stamp could be inaccurate due to inter CPU drift. Solution: Replace the call to activate_task() with one to __activate_task(). Signed-off-by: Peter Williams <pwil3058@bigpond.net.au> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'security/selinux/include')
0 files changed, 0 insertions, 0 deletions