git: kernel - Fix SMP race in procfs

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Nov 13 11:17:57 PST 2018


commit f21197177101972ecc2bb045a2c4bbf0ab7ee0b0
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Nov 13 11:10:47 2018 -0800

    kernel - Fix SMP race in procfs
    
    * procfs was not locking its pid hash table.  Implement a per-slot
      spinlock.  The hash is populated only for pid directories that are
      pushed into (e.g. ls /proc/<pid> vs ls /proc).
    
    * Fixes a fairly rare crash that can only occur when procfs is used
      heavily.

Summary of changes:
 sys/vfs/procfs/procfs_subr.c | 94 +++++++++++++++++++++++++++++---------------
 1 file changed, 62 insertions(+), 32 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list