Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F139502702
D15809.id43778.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
736 B
Referenced Files
None
Subscribers
None
D15809.id43778.diff
View Options
Index: sys/kern/init_main.c
===================================================================
--- sys/kern/init_main.c
+++ sys/kern/init_main.c
@@ -618,17 +618,23 @@
*/
sx_slock(&allproc_lock);
FOREACH_PROC_IN_SYSTEM(p) {
+ PROC_LOCK(p);
+ if (p->p_state == PRS_NEW) {
+ PROC_UNLOCK(p);
+ continue;
+ }
microuptime(&p->p_stats->p_start);
PROC_STATLOCK(p);
rufetch(p, &ru); /* Clears thread stats */
- PROC_STATUNLOCK(p);
p->p_rux.rux_runtime = 0;
p->p_rux.rux_uticks = 0;
p->p_rux.rux_sticks = 0;
p->p_rux.rux_iticks = 0;
+ PROC_STATUNLOCK(p);
FOREACH_THREAD_IN_PROC(p, td) {
td->td_runtime = 0;
}
+ PROC_UNLOCK(p);
}
sx_sunlock(&allproc_lock);
PCPU_SET(switchtime, cpu_ticks());
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 13, 8:13 PM (18 h, 3 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26940580
Default Alt Text
D15809.id43778.diff (736 B)
Attached To
Mode
D15809: proc0_post: Fix some locking issues
Attached
Detach File
Event Timeline
Log In to Comment