git: kernel - Fix racing assertion

Matthew Dillon dillon at crater.dragonflybsd.org
Fri May 9 10:25:55 PDT 2014


commit c06df2fb7ad1d7a8500c384f5d124de6adbb4881
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri May 9 10:24:56 2014 -0700

    kernel - Fix racing assertion
    
    * Two semaphore assertions could panic the box because they were testing
      conditions subject to SMP races.
    
    * Move the assertions past the lock so they are no longer subject to SMP
      races.
    
    Reported-by: marino

Summary of changes:
 sys/kern/sysv_sem.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list