git: kern/lwp: Check lwp_lock before remove lwp from process lwp tree

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Thu Nov 19 18:18:54 PST 2015


commit 6214ede12d2e6859d24faacb590244a2d07d3807
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Fri Nov 20 10:12:57 2015 +0800

    kern/lwp: Check lwp_lock before remove lwp from process lwp tree
    
    This makes sure that lwp tree iteration with blocking operation
    will not be broken.
    
    While I'm here, add assertion lwp_lock == 0 in lwp_dispose()

Summary of changes:
 sys/kern/kern_exit.c | 9 +++++++++
 sys/kern/kern_fork.c | 7 +++++++
 2 files changed, 16 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6214ede12d2e6859d24faacb590244a2d07d3807


-- 
DragonFly BSD source repository


More information about the Commits mailing list