Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103041330
D35821.id.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.id.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
Thu, Nov 21, 4:17 AM (21 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14754198
Default Alt Text
D35821.id.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