git: kernel - Fix STOP/CONT race

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Aug 29 11:17:19 PDT 2016


commit 5525fede62a61b2d8d5fac4cb0f771c01132e083
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Aug 29 10:26:14 2016 -0700

    kernel - Fix STOP/CONT race
    
    * Normally we should not be in LSSLEEP in the tsleep resume code, but a
      pending signal related to STOP/CONT or TSTOP/TCONT can cause us
      to skip the sleep and an interrupt race can change the lp status from
      STOP to SLEEP.  Make sure we are back in the RUN state.

Summary of changes:
 sys/kern/kern_synch.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5525fede62a61b2d8d5fac4cb0f771c01132e083


-- 
DragonFly BSD source repository


More information about the Commits mailing list