Page MenuHomeFreeBSD

D52421.1778446907.diff
No OneTemporary

Size
704 B
Referenced Files
None
Subscribers
None

D52421.1778446907.diff

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

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)

Event Timeline