git: kernel - Optimize shared -> excl spinlock contention

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Oct 16 11:30:37 PDT 2017


commit 1b8fb8d2a5ce36dee333be7a40858036d134ec57
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Oct 4 22:04:13 2017 -0700

    kernel - Optimize shared -> excl spinlock contention
    
    * When exclusive request is spinning waiting for shared holders to
      release, throw in addition cpu_pause()'s based on the number of
      shared holders.
    
    Suggested-by: mjg_

Summary of changes:
 sys/kern/kern_spinlock.c | 65 ++++++++++++++++++++++++------------------------
 1 file changed, 33 insertions(+), 32 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1b8fb8d2a5ce36dee333be7a40858036d134ec57


-- 
DragonFly BSD source repository


More information about the Commits mailing list