kernel - Fix VM bug introduced earlier this month
commit120ac5dd96c9a4689e25b09a8feb47df823c687d
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 26 Jul 2016 00:06:52 +0000 (25 17:06 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 26 Jul 2016 00:24:54 +0000 (25 17:24 -0700)
tree85fe93ab2488daf3b2b55fbe53f2a1b077d27c68
parent018662b54d0325e59616de36351a4caac3484c98
kernel - Fix VM bug introduced earlier this month

* Adding the yields to the VM page teardown and related code was a great
  idea (~Jul 10th commits), but it also introduced a bug where the page
  could get torn-out from under the scan due to the vm_object's token being
  temporarily lost.

* Re-check page object ownership and (when applicable) its pindex before
  acting on the page.
sys/vm/vm_object.c