kernel - Wait for I/O to finish in vm_object_terminate()
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 11 Nov 2011 03:42:59 +0000 (19:42 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 11 Nov 2011 03:42:59 +0000 (19:42 -0800)
commitac95207135ffd2131ef924df47a7d50ae4354500
tree32e37aec75cc0dc32f527d0feb7bcb52fc5fc7e1
parent51c99c6153dfaddf8f0a27f9f536caaa28c681a4
kernel - Wait for I/O to finish in vm_object_terminate()

* It is possible for swap I/O to be in progress when terminating a VM
  object, wait for any such I/O to complete before attempting to free
  the page.

* Fixes a panic which can occur under heavy loads.

Reported-by: John Marino
sys/vm/vm_object.c