kernel - Fix panic in vm_page_try_to_free()
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 8 Dec 2011 02:36:10 +0000 (18:36 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 8 Dec 2011 02:36:10 +0000 (18:36 -0800)
commit82034c538f6a544c2a7b0bf2dfbd96af7b774b41
treeaea30bf44bd70c1069f44061f29f12e21e0919f8
parent20bace435bb4c79cfbae0246a079a346626f1fbf
kernel - Fix panic in vm_page_try_to_free()

* This function is supposed to work with the VM page in any state, including
  a potentially free state.

* Add additional checks to ignore the page if it is already in PQ_FREE or
  PQ_HOLD

Reported-by: sephe
sys/vm/vm_page.c