kernel - Cleanup vfs_lock & ref-count states states (2)
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 22 Oct 2013 16:23:48 +0000 (09:23 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 22 Oct 2013 16:23:48 +0000 (09:23 -0700)
commitcb3297fb725f5144dbef8f4e961a57e5c94df96a
tree4e598b14c8c7c281610ccb5747619e4b032b50d1
parent089301c240f0aa570def475283b186dbbdd4ffef
kernel - Cleanup vfs_lock & ref-count states states (2)

* Adjust trigger points such that under normal operation vnlru_proc()
  handles cleaning up extra vnodes.  If this is not sufficient then
  the synchronous cleanup code will kick in at higher levels.

* Adjust vnode->v_act handling and try to take into account vnodes
  with large memory objects (which we would rather reclaim later and
  not sooner).  This takes over functionality from vlru_reclaim().

* Remove the vlrureclaim() mount-scanning infrastructure.  vnlru_proc()
  now just calls freesomevnodes().  This should now be sufficient.  This
  removes significant locking overheads during steady-state operation.
sys/kern/vfs_lock.c
sys/kern/vfs_mount.c
sys/kern/vfs_subr.c