git: devfs - Ensure lock held around devfs_cdev_terminate()

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Dec 2 12:13:30 PST 2019


commit dd0e3cd77910a3aedf956ab0d5656eeef6c20577
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Dec 2 12:12:22 2019 -0800

    devfs - Ensure lock held around devfs_cdev_terminate()
    
    * Ensure that a lock is held around devfs_cdev_terminate() on
      sysref release (which can occur from any thread, not just the
      devfs thread).

Summary of changes:
 sys/kern/kern_sysref.c     |  1 +
 sys/sys/devfs.h            |  3 ---
 sys/vfs/devfs/devfs_core.c | 45 ++++++++++++++++-----------------------------
 3 files changed, 17 insertions(+), 32 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list