Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106936019
D33888.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
747 B
Referenced Files
None
Subscribers
None
D33888.diff
View Options
diff --git a/sys/compat/linuxkpi/common/src/linux_schedule.c b/sys/compat/linuxkpi/common/src/linux_schedule.c
--- a/sys/compat/linuxkpi/common/src/linux_schedule.c
+++ b/sys/compat/linuxkpi/common/src/linux_schedule.c
@@ -202,9 +202,11 @@
linux_wake_up(wait_queue_head_t *wqh, unsigned int state, int nr, bool locked)
{
wait_queue_t *pos, *next;
+ unsigned long flags;
if (!locked)
- spin_lock(&wqh->lock);
+ spin_lock_irqsave(&wqh->lock, flags);
+
list_for_each_entry_safe(pos, next, &wqh->task_list, task_list) {
if (pos->func == NULL) {
if (wake_up_task(pos->private, state) != 0 && --nr == 0)
@@ -215,7 +217,7 @@
}
}
if (!locked)
- spin_unlock(&wqh->lock);
+ spin_unlock_irqrestore(&wqh->lock, flags);
}
void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 8, 5:56 PM (1 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15724435
Default Alt Text
D33888.diff (747 B)
Attached To
Mode
D33888: LinuxKPI: Allow wake_up to be executed within a critical section
Attached
Detach File
Event Timeline
Log In to Comment