git: devfs - Clean up some SMP inefficiencies

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Feb 14 16:12:13 PST 2020


commit 948d6431553d280ef554aac789522b8ffdda7185
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Feb 14 16:01:09 2020 -0800

    devfs - Clean up some SMP inefficiencies
    
    * We don't need the devfs master lock around a setattr call.  This
      fixes the open(O_CREAT|O_TRUNC) path for redirects to e.g. /dev/null,
      which is used all over the place in ports builds.
    
    * The devfs spec open (open() again) path can obtain the devfs master
      lock shared instead of exclusive, except in the cloning case.
      This significantly reduces stalls during heavily concurrent bulk
      builds.

Summary of changes:
 sys/vfs/devfs/devfs_vnops.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/948d6431553d280ef554aac789522b8ffdda7185


-- 
DragonFly BSD source repository



More information about the Commits mailing list