kernel - Fix swapcached problems when max-swap use reached
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 18 Nov 2011 18:48:09 +0000 (10:48 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 18 Nov 2011 18:48:09 +0000 (10:48 -0800)
commit08fb7a9da0e0d88d4b3f6574e0e113fb6304946f
treee3a5ce14db69f22af13b452ba0603f16d11f6f6e
parentaacb506b9777fdcdbcea0fef410343c427d631ed
kernel - Fix swapcached problems when max-swap use reached

* A calculation could reverse-index the limit counter and cause
  swapcached to eat an excessive amount of cpu, causing other
  processes to stall.

* Fixes network problems between avalon and the dragonfly core network.
sys/vm/swap_pager.c
sys/vm/vm_swapcache.c