--- mm/vmscan.c.~1~ Fri Mar 16 15:39:24 2001 +++ mm/vmscan.c Thu Mar 22 13:05:37 2001 @@ -1010,7 +1010,7 @@ * We go to sleep for one second, but if it's needed * we'll be woken up earlier... */ - if (!free_shortage() || !inactive_shortage()) { + if (!free_shortage() && !inactive_shortage()) { interruptible_sleep_on_timeout(&kswapd_wait, HZ); /* * If we couldn't free enough memory, we see if it was