Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110099602
D35821.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
430 B
Referenced Files
None
Subscribers
None
D35821.diff
View Options
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -871,7 +871,8 @@
*/
TDQ_LOCK(tdq);
td = tdq->tdq_curthread;
- if ((td->td_flags & TDF_IDLETD) == 0 &&
+ if (td->td_lock == TDQ_LOCKPTR(tdq) &&
+ (td->td_flags & TDF_IDLETD) == 0 &&
THREAD_CAN_MIGRATE(td)) {
td->td_flags |= TDF_NEEDRESCHED | TDF_PICKCPU;
if (high != curcpu)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 14, 2:54 PM (20 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16644034
Default Alt Text
D35821.diff (430 B)
Attached To
Mode
D35821: sched_ule: Ensure we hold the thread lock when modifying td_flags
Attached
Detach File
Event Timeline
Log In to Comment