Fix uvm_object reference counting. While these reference counts aren't reaaly
authorkettenis <kettenis@openbsd.org>
Fri, 23 Oct 2015 08:21:58 +0000 (08:21 +0000)
committerkettenis <kettenis@openbsd.org>
Fri, 23 Oct 2015 08:21:58 +0000 (08:21 +0000)
commitba395deab2e149180f60fcc812dcbd9efe9f0cde
tree0ce29318e639b30e774ed5eb34345427f7db9858
parent1986e87ff1719a9f16074fd1571a0054745a3e8e
Fix uvm_object reference counting.  While these reference counts aren't reaaly
used (ttm bo's have their own reference counts), we can't let the reference
count go negative as this will freak out the upper uvm layers.  Since the
uvm_object reference count is still a useful debugging tool (ddb will display
it for example), adjust it such that the uvm_object reference count represents
the number of references held by the uvm layer.

tested by matthieu@
ok jsg@
sys/dev/pci/drm/ttm/ttm_bo.c
sys/dev/pci/drm/ttm/ttm_bo_vm.c