git: kernel - Fix startup race in usched_dfly

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Aug 29 08:27:45 PDT 2018


commit ca50f0d271948b08f961108a838a9ccce8634e1b
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Aug 26 11:52:59 2018 -0700

    kernel - Fix startup race in usched_dfly
    
    * Use a master configuration lock for usched_dfly's thread
      creation, ensuring that no thread tries to check dfly_pcpu[]
      until the whole thing has been initialized.
    
    * Fixes occassional panic in usched_dfly on boot on many-cores
      systems due to a lower-numbered usched thread triggering before
      dfly_pcpu is completely initialized.

Summary of changes:
 sys/kern/usched_dfly.c | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ca50f0d271948b08f961108a838a9ccce8634e1b


-- 
DragonFly BSD source repository


More information about the Commits mailing list