git: kern/dsched: Fix a panic at proc exit

Joris Giovannangeli joris at crater.dragonflybsd.org
Wed Oct 29 14:51:50 PDT 2014


commit 4db1a66d8221d557a0a3e37aa842cf2824e0dfea
Author: Joris Giovannangeli <joris at giovannangeli.fr>
Date:   Wed Oct 29 22:43:02 2014 +0100

    kern/dsched: Fix a panic at proc exit
    
     * When a proc exit, dsched tries to destroy the thread context.
       But if the thread context is not empty, it needs to wait
       for the thread ios to be drained.
    
     * add a callback to wakeup the thread when the last queued io is
       completed and resume the in progress destruction.
    
     * Should fix #2645

Summary of changes:
 sys/kern/kern_dsched.c | 40 +++++++++++++++++++++++++++++++++++++++-
 sys/sys/dsched.h       |  2 +-
 2 files changed, 40 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4db1a66d8221d557a0a3e37aa842cf2824e0dfea


-- 
DragonFly BSD source repository



More information about the Commits mailing list