git: kernel - Add a hold count to struct rman

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Aug 9 10:54:00 PDT 2021


commit 869748ea0626d3966a0b0e1a8223de70ef050c3d
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Aug 9 10:53:00 2021 -0700

    kernel - Add a hold count to struct rman
    
    * Add a hold count to protect against destruction, fixing a race
      between rman list iterations (the sysctl iteration) and device
      activity that adjusts the rman lists.
    
    * Fixes a panic related to Firefox.

Summary of changes:
 sys/kern/subr_rman.c | 63 +++++++++++++++++++++++++++++++++++++++-------------
 sys/sys/rman.h       |  3 +--
 2 files changed, 48 insertions(+), 18 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/869748ea0626d3966a0b0e1a8223de70ef050c3d


-- 
DragonFly BSD source repository



More information about the Commits mailing list