kernel - Remove unneeded map token use from the vm_fault path.
commit73101af2cf10ca65e7be85f900483f9393940d23
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 6 Feb 2017 02:56:45 +0000 (5 18:56 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 6 Feb 2017 02:56:45 +0000 (5 18:56 -0800)
tree63624464dbd3e448b96a245cf5ff89034e98504a
parent635c9c159eb758c1328d8a014b7cb1d0255d00ab
kernel - Remove unneeded map token use from the vm_fault path.

* vm_fault() and vm_fault_page() does not need to hold the map_token.
  They already hold the standard vm_map lock.

* This improves re-faulting in a multi-threaded environment, resulting
  in a fully shared-lock and essentially uncontended path.  It will not
  improve initial faulting where a vm_page has to be allocated into the
  backing vm_object (which requires an exclusive object token).
sys/vm/vm_fault.c