diff options
author | 2014-07-13 21:44:58 +0000 | |
---|---|---|
committer | 2014-07-13 21:44:58 +0000 | |
commit | d3a769668613a0f9f6a071596a953d698d547b52 (patch) | |
tree | 2256e72e00dbb9ef63bdc3699e40f952706ec6c4 /sys/dev/softraid.c | |
parent | yes indeed, it returns void *. from Jean-Philippe Ouellet, i also had (diff) | |
download | wireguard-openbsd-d3a769668613a0f9f6a071596a953d698d547b52.tar.xz wireguard-openbsd-d3a769668613a0f9f6a071596a953d698d547b52.zip |
Fix sched_stop_secondary_cpus() to properly drain CPUs
TAILQ_FOREACH() isn't safe to use in sched_chooseproc() to iterate
over the run queues because within the loop body we remove the threads
from their run queues and reinsert them elsewhere. As a result, we
end up only draining the first thread of each run queue rather than
all of them.
ok kettenis
Diffstat (limited to 'sys/dev/softraid.c')
0 files changed, 0 insertions, 0 deletions