summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
authormatthew <matthew@openbsd.org>2014-07-13 21:44:58 +0000
committermatthew <matthew@openbsd.org>2014-07-13 21:44:58 +0000
commitd3a769668613a0f9f6a071596a953d698d547b52 (patch)
tree2256e72e00dbb9ef63bdc3699e40f952706ec6c4 /sys/dev/softraid.c
parentyes indeed, it returns void *. from Jean-Philippe Ouellet, i also had (diff)
downloadwireguard-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