]> git.neil.brown.name Git - history.git/commit
[PATCH] set_cpus_allowed fix
authorRobert Love <rml@tech9.net>
Sat, 8 Jun 2002 09:26:14 +0000 (02:26 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 8 Jun 2002 09:26:14 +0000 (02:26 -0700)
commit9cc083a6a1b780884443820b4c5a249a8ae02c1d
tree5ef54fc05dad1efeac3ca4435cec3ba515784d92
parent7771a0436e9a0f0c2f44c24821c5c868846adc10
[PATCH] set_cpus_allowed fix

Mike Kravetz pointed out that the set_cpus_allowed optimization he
suggested has a small but possible race condition wherein the system
could still be operating in the context of the task but it is not
running.  On top of this, the runqueue lock can be dropped in
load_balance and thus we can race and set task->cpu at a very unpleasant
time.

My solution is to just remove the optimization.
kernel/sched.c