kernel - Improve concurrency in devfs VOPs
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 18 Oct 2017 06:42:43 +0000 (23:42 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 18 Oct 2017 06:42:43 +0000 (23:42 -0700)
commit845bd036cbda57cad61596e264373e0e8461a760
treea7b23f0a55aaba5646178b7bae8a951b37acf70f
parent969cb9ac744d6962dd23acc42c52bf418251987d
kernel - Improve concurrency in devfs VOPs

* Use LK_SHARED instead of LK_EXCLUSIVE whenever possible.  This
  significantly reduces lock congestion for getattr(), read(),
  and readlink().

* Check the new D_QUICK flag and, if set, devfs can avoid lock
  congestion for open() and close() on devices (e.g. such as on
  /dev/null, /dev/urandom, etc).
sys/vfs/devfs/devfs_core.c
sys/vfs/devfs/devfs_vnops.c