vm_object locking fixes
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Thu, 13 Oct 2011 00:44:41 +0000 (17:44 -0700)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Thu, 13 Oct 2011 00:44:41 +0000 (17:44 -0700)
commit316672b1896b289b16733682730638b488d1ca27
tree31518f22bde9e5f71607ba5428bb857aace5266d
parentdcf32f81f3c5059fb6d7b6d0d4cfb496d52c8d9d
vm_object locking fixes

* vm_object_shadow() was failing to hold/drop source objects it was working
  on while manipulating the source object.

* vm_object_deallocate_locked() needed to retest the object refcount after
  locking it's token.

From: dillon
Reported-by: marino
sys/vm/vm_object.c