[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOJsxLGcoxxdhe2sNmAbC2e5afnZm9960XxBjY+QoCoc0RRb2w@mail.gmail.com>
Date: Mon, 26 Mar 2012 13:40:41 +0300
From: Pekka Enberg <penberg@...nel.org>
To: Mel Gorman <mel@....ul.ie>
Cc: Rik van Riel <riel@...hat.com>, Anton Blanchard <anton@...ba.org>,
aarcange@...hat.com, akpm@...ux-foundation.org, hughd@...gle.com,
lkml <linux-kernel@...r.kernel.org>, linux-mm@...ck.org,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [PATCH] Re: kswapd stuck using 100% CPU
On Mon, Mar 26, 2012 at 12:32 PM, Mel Gorman <mel@....ul.ie> wrote:
> On Sat, Mar 24, 2012 at 10:26:21AM -0400, Rik van Riel wrote:
>>
>> 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.
>>
>> Signed-off-by: Rik van Riel <riel@...hat.com>
>> Reported-by: Anton Blanchard <anton@...ba.org>
>
> Acked-by: Mel Gorman <mel@....ul.ie>
The API looks fragile and this patch isn't exactly making it any
better. Why don't we make compaction_suitable() return something other
than COMPACT_SKIPPED for !CONFIG_COMPACTION case?
Pekka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists