Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145699034
D52421.1778446907.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
704 B
Referenced Files
None
Subscribers
None
D52421.1778446907.diff
View Options
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c
--- a/sys/kern/kern_thr.c
+++ b/sys/kern/kern_thr.c
@@ -346,6 +346,17 @@
p = td->td_proc;
+ /*
+ * Clear kernel ASTs in advance of selecting the last exiting
+ * thread and collecting schedulers locks. It is fine to
+ * clear that ASTs there even if we are not going to exit
+ * after all. On the other hand, having them pending could
+ * trigger that subsystems in the context that is not prepared
+ * to handle top kernel actions, even in execution of an
+ * unrelated thread.
+ */
+ ast_kclear(td);
+
/*
* If all of the threads in a process call this routine to
* exit (e.g. all threads call pthread_exit()), exactly one
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 10, 9:01 PM (6 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28647996
Default Alt Text
D52421.1778446907.diff (704 B)
Attached To
Mode
D52421: kern_thr_exit(): clear kASTs in advance
Attached
Detach File
Event Timeline
Log In to Comment