kernel - VM - fix vm_pages_needed race
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 3 Feb 2010 23:19:52 +0000 (15:19 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 3 Feb 2010 23:19:52 +0000 (15:19 -0800)
commit12d8aca7e6e8fea5c241554f699d3c7517f07d6c
treed96b0af79cf4e53ef939e9ec5bc9adcba47ec657
parent107e9bcca13edfa5b6145d3e2424a8b991c2db8b
kernel - VM - fix vm_pages_needed race

* vm_page_needed sleep/wakeup can race and cause a wakeup to be missed,
  resulting in processes getting stuck in 'pfault' until something else
  kicks the pager.

  Fix the race.
sys/vm/vm_pageout.c