git: DragonFly_RELEASE_5_8 devfs - Clean up some SMP inefficiencies
Matthew Dillon
dillon at crater.dragonflybsd.org
Fri Feb 28 09:16:46 PST 2020
commit 387d2e2917226c0552942da3a77ce8e9a965080d
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/387d2e2917226c0552942da3a77ce8e9a965080d
--
DragonFly BSD source repository
More information about the Commits
mailing list