Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140096985
D29513.id86620.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
617 B
Referenced Files
None
Subscribers
None
D29513.id86620.diff
View Options
Index: sys/kern/subr_lock.c
===================================================================
--- sys/kern/subr_lock.c
+++ sys/kern/subr_lock.c
@@ -130,17 +130,17 @@
for (i = la->delay; i > 0; i--)
cpu_spinwait();
-
la->spin_cnt += la->delay;
+
+ la->delay <<= 1;
+ if (__predict_false(la->delay > lc->max))
+ la->delay = lc->max;
+
if (__predict_false(la->spin_cnt > starvation_limit)) {
SDT_PROBE1(lock, , , starvation, la->delay);
if (restrict_starvation)
la->delay = lc->base;
}
-
- la->delay <<= 1;
- if (__predict_false(la->delay > lc->max))
- la->delay = lc->max;
}
static u_int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 21, 4:41 AM (4 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27107266
Default Alt Text
D29513.id86620.diff (617 B)
Attached To
Mode
D29513: lock_delay(9): improve interaction with restrict_starvation
Attached
Detach File
Event Timeline
Log In to Comment