kernel - Add debugging and attempt to fix vm_prefault issue
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 14 Jul 2011 01:21:10 +0000 (18:21 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 14 Jul 2011 01:21:10 +0000 (18:21 -0700)
commita31129d838620ac18492c7f9cdb2811f6951e26e
tree142ba9426f02856b8988b5d616eef8f42b09057a
parent46613a84ebc18adbad4ff14f3a7c70c94839e226
kernel - Add debugging and attempt to fix vm_prefault issue

* Add debugging assertions and attempt to fix a race in the vm_prefault
  code when running through backing_object chains.

* The fix may be incomplete, we really need a way to determine whether any
  chain element has changed state during the scan.  The generation count
  may be too excessive as it also covers vm_page insertions.

Reported-by: Peter Avalos <peter@theshell.com>
sys/vm/vm_fault.c
sys/vm/vm_object.c
sys/vm/vm_object.h