Page MenuHomeFreeBSD

D14847.diff
No OneTemporary

D14847.diff

Index: head/sys/kern/subr_sleepqueue.c
===================================================================
--- head/sys/kern/subr_sleepqueue.c
+++ head/sys/kern/subr_sleepqueue.c
@@ -1103,7 +1103,7 @@
sleepq_chains_remove_matching(bool (*matches)(struct thread *))
{
struct sleepqueue_chain *sc;
- struct sleepqueue *sq;
+ struct sleepqueue *sq, *sq1;
int i, wakeup_swapper;
wakeup_swapper = 0;
@@ -1112,7 +1112,7 @@
continue;
}
mtx_lock_spin(&sc->sc_lock);
- LIST_FOREACH(sq, &sc->sc_queues, sq_hash) {
+ LIST_FOREACH_SAFE(sq, &sc->sc_queues, sq_hash, sq1) {
for (i = 0; i < NR_SLEEPQS; ++i) {
wakeup_swapper |= sleepq_remove_matching(sq, i,
matches, 0);

File Metadata

Mime Type
text/plain
Expires
Wed, Jul 1, 8:52 PM (56 m, 1 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34577292
Default Alt Text
D14847.diff (696 B)

Event Timeline