kernel - Fix excessive kprintf()s during refcount_wait()
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 21 Feb 2013 07:01:20 +0000 (23:01 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 21 Feb 2013 07:01:20 +0000 (23:01 -0800)
commit761f82263d16005d2443720e44b5dbb397c38bdf
treeaa0c60512fb91bd9e5bed1c41c42eb4050ca21bd
parent2446b819bcf812e200b119f5f2fa37aee3f8a426
kernel - Fix excessive kprintf()s during refcount_wait()

* _refcount_wait() can do itself in with excessive kprintf()s
  on large multi-way machines, causing the machine to become
  unresponsive.

* Rewrite the code to use a ticks test and only kprintf()
  a warning when it takes more than 60 seconds.

* Used by vm_object_pip_wait().  Long I/O queues are possible.
sys/kern/kern_refcount.c