Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167129904
D26368.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1023 B
Referenced Files
None
Subscribers
None
D26368.diff
View Options
Index: head/sys/kern/kern_racct.c
===================================================================
--- head/sys/kern/kern_racct.c
+++ head/sys/kern/kern_racct.c
@@ -1146,6 +1146,8 @@
FOREACH_THREAD_IN_PROC(p, td) {
thread_lock(td);
+ td->td_flags |= TDF_ASTPENDING;
+
switch (td->td_state) {
case TDS_RUNQ:
/*
Index: head/sys/kern/subr_trap.c
===================================================================
--- head/sys/kern/subr_trap.c
+++ head/sys/kern/subr_trap.c
@@ -206,10 +206,6 @@
__func__, td, p->p_pid, td->td_name, curvnet,
(td->td_vnet_lpush != NULL) ? td->td_vnet_lpush : "N/A"));
#endif
-#ifdef RACCT
- if (__predict_false(racct_enable && p->p_throttled != 0))
- racct_proc_throttled(p);
-#endif
}
/*
@@ -361,6 +357,11 @@
td->td_pflags &= ~TDP_OLDMASK;
kern_sigprocmask(td, SIG_SETMASK, &td->td_oldsigmask, NULL, 0);
}
+
+#ifdef RACCT
+ if (__predict_false(racct_enable && p->p_throttled != 0))
+ racct_proc_throttled(p);
+#endif
userret(td, framep);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 20, 8:41 AM (15 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36947370
Default Alt Text
D26368.diff (1023 B)
Attached To
Mode
D26368: Move racct/rctl throttling from userret() to ast(). There's no reason for it to sit in the syscall fast path.
Attached
Detach File
Event Timeline
Log In to Comment