Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161135239
D14847.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
696 B
Referenced Files
None
Subscribers
None
D14847.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D14847: Use LIST_FOREACH_SAFE in sleepq_chains_remove_matching()
Attached
Detach File
Event Timeline
Log In to Comment