kernel -- vm_object locking: DEBUG_LOCKS check for hold_wait vs hold deadlock
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Sun, 27 Mar 2011 14:20:20 +0000 (07:20 -0700)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Sun, 27 Mar 2011 14:20:20 +0000 (07:20 -0700)
commitcb443cbb47dab690574674c82ee9407c28deb544
treed61ae1e46d2f91e18ff272329d98914a6e7eb793
parent6388f6146370f416477ebad89b2aa27f81853e29
kernel -- vm_object locking: DEBUG_LOCKS check for hold_wait vs hold deadlock

If a thread has a hold on a vm_object and enters hold_wait (via either
vm_object_terminate or vm_object_collapse), it will wait forever for the hold
count to hit 0. Record the threads holding an object in a per-object array.
sys/vm/vm_object.c
sys/vm/vm_object.h