]> git.baikalelectronics.ru Git - kernel.git/commit
Fix potential endless loop in kswapd when compaction is not enabled
authorRik van Riel <riel@redhat.com>
Sat, 24 Mar 2012 14:26:21 +0000 (10:26 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 24 Mar 2012 19:18:32 +0000 (12:18 -0700)
commitddd2bdf391e50d32dde081bfe095c81d379bcddf
tree5585608ebdce5a7eca8f5ef334e6b167fcd5aab1
parentbca1b92e8205905f31ebafb3d5df53361b5fa6cb
Fix potential endless loop in kswapd when compaction is not enabled

We should only test compaction_suitable if the kernel is built with
CONFIG_COMPACTION, otherwise the stub compaction_suitable function will
always return COMPACT_SKIPPED and send kswapd into an infinite loop.

Reported-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmscan.c