From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755321Ab0KIVmQ (ORCPT ); Tue, 9 Nov 2010 16:42:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49152 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752446Ab0KIVmN (ORCPT ); Tue, 9 Nov 2010 16:42:13 -0500 Date: Tue, 9 Nov 2010 22:40:36 +0100 From: Andrea Arcangeli To: KOSAKI Motohiro Cc: linux-mm@kvack.org, Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, Marcelo Tosatti , Adam Litke , Avi Kivity , Hugh Dickins , Rik van Riel , Mel Gorman , Dave Hansen , Benjamin Herrenschmidt , Ingo Molnar , Mike Travis , KAMEZAWA Hiroyuki , Christoph Lameter , Chris Wright , bpicco@redhat.com, Balbir Singh , "Michael S. Tsirkin" , Peter Zijlstra , Johannes Weiner , Daisuke Nishimura , Chris Mason , Borislav Petkov Subject: Re: [PATCH 43 of 66] don't leave orhpaned swap cache after ksm merging Message-ID: <20101109214036.GE6809@random.random> References: <20101109120747.BC4B.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101109120747.BC4B.A69D9226@jp.fujitsu.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 09, 2010 at 12:08:25PM +0900, KOSAKI Motohiro wrote: > > From: Andrea Arcangeli > > > > When swapcache is replaced by a ksm page don't leave orhpaned swap cache. > > > > Signed-off-by: Andrea Arcangeli > > Reviewed-by: Rik van Riel > > This explanation seems to tell this is bugfix. If so, please separate > this one from THP and will send mainline and -stable soon. Right. I'm uncertain if this is so bad to require -stable I think, if it was more urgent I would have submitted already separately but it's true it's not THP specific. It's only fatal for cloud computing, where the manager has to decide to migrate more VM to one node, but it won't if it sees tons of swap used and it will think there's not enough margin for KSM cows until the VM is migrated back to another node.