/[base]
ViewVC logotype

Revision 355779


Jump to revision: Previous Next
Author: jeff
Date: Sun Dec 15 21:11:15 2019 UTC (7 weeks, 1 day ago)
Changed paths: 27
Log Message:
schedlock 1/4

Eliminate recursion from most thread_lock consumers.  Return from
sched_add() without the thread_lock held.  This eliminates unnecessary
atomics and lock word loads as well as reducing the hold time for
scheduler locks.  This will eventually allow for lockless remote adds.

Discussed with:	kib
Reviewed by:	jhb
Tested by:	pho
Differential Revision:	https://reviews.freebsd.org/D22626


Changed paths

Path Details
Directoryhead/sys/cddl/compat/opensolaris/sys/proc.h modified , text changed
Directoryhead/sys/compat/linux/linux_fork.c modified , text changed
Directoryhead/sys/compat/linuxkpi/common/src/linux_kthread.c modified , text changed
Directoryhead/sys/dev/ocs_fc/ocs_os.c modified , text changed
Directoryhead/sys/kern/init_main.c modified , text changed
Directoryhead/sys/kern/kern_clock.c modified , text changed
Directoryhead/sys/kern/kern_fork.c modified , text changed
Directoryhead/sys/kern/kern_intr.c modified , text changed
Directoryhead/sys/kern/kern_kthread.c modified , text changed
Directoryhead/sys/kern/kern_mutex.c modified , text changed
Directoryhead/sys/kern/kern_resource.c modified , text changed
Directoryhead/sys/kern/kern_sig.c modified , text changed
Directoryhead/sys/kern/kern_synch.c modified , text changed
Directoryhead/sys/kern/kern_thr.c modified , text changed
Directoryhead/sys/kern/kern_thread.c modified , text changed
Directoryhead/sys/kern/sched_4bsd.c modified , text changed
Directoryhead/sys/kern/sched_ule.c modified , text changed
Directoryhead/sys/kern/subr_gtaskqueue.c modified , text changed
Directoryhead/sys/kern/subr_pcpu.c modified , text changed
Directoryhead/sys/kern/subr_sleepqueue.c modified , text changed
Directoryhead/sys/kern/subr_taskqueue.c modified , text changed
Directoryhead/sys/kern/subr_turnstile.c modified , text changed
Directoryhead/sys/mips/nlm/cms.c modified , text changed
Directoryhead/sys/sys/proc.h modified , text changed
Directoryhead/sys/sys/resourcevar.h modified , text changed
Directoryhead/sys/sys/sched.h modified , text changed
Directoryhead/sys/vm/vm_swapout.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27