kernel - Fix VM bug introduced earlier this month
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 26 Jul 2016 00:06:52 +0000 (17:06 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 26 Jul 2016 00:37:02 +0000 (17:37 -0700)
commitbc2be5ee4c521f03988d6d8d155c2fb41a1a8150
tree724b53d5b6ad36468795dcd865db650afdd38af9
parent32ac1f29ee0bfe4c4bc678e9dfa39a6c13633923
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