kernel - Fix hold race and catch bad vm_object terminations
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 15 Apr 2011 15:32:56 +0000 (08:32 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 15 Apr 2011 15:32:56 +0000 (08:32 -0700)
commit34542daf57322ec6f265a100ebefb24a1805688b
tree8dc3bc402ef9eed314d512772aef4c9e737b5e95
parent1327d18ca0e4b37a5fa87a332c2b2b4af01d606f
kernel - Fix hold race and catch bad vm_object terminations

* vm_object_hold_wait() currently also needs the vm_token to safely
  test rb_memq.

* Add code to complain if a VM object's rb_memq is not empty when
  the object is being terminated.
sys/vm/swap_pager.c
sys/vm/vm_object.c