kernel - Improve mountlist_scan() performance, track vfs_getvfs()
commitfb578eace6c2fb11150b7e39f0c516c979323d8d
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 13 Oct 2017 05:59:02 +0000 (12 22:59 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 16 Oct 2017 18:30:22 +0000 (16 11:30 -0700)
tree84917e8b26756a8a8c3bbc8c535edf40c02a8f74
parentfe45ae1a1588966a69c174e5192406e76dd749b3
kernel - Improve mountlist_scan() performance, track vfs_getvfs()

* Use a shared token whenever possible, and do not hold the token
  across the callback in the mountlist_scan() call.

* vfs_getvfs() mount_hold()'s the returned mp.  The caller is now
  expected to mount_drop() it when done.  This fixes a very rare
  race.
sys/kern/kern_checkpoint.c
sys/kern/vfs_cache.c
sys/kern/vfs_mount.c
sys/kern/vfs_syscalls.c
sys/vfs/nfs/nfs_serv.c
sys/vfs/nfs/nfs_subs.c
sys/vfs/nullfs/null_vfsops.c
sys/vfs/ufs/ffs_vfsops.c