Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751159AbWERGkQ (ORCPT ); Thu, 18 May 2006 02:40:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751229AbWERGkP (ORCPT ); Thu, 18 May 2006 02:40:15 -0400 Received: from mail12.syd.optusnet.com.au ([211.29.132.193]:21663 "EHLO mail12.syd.optusnet.com.au") by vger.kernel.org with ESMTP id S1751159AbWERGkO (ORCPT ); Thu, 18 May 2006 02:40:14 -0400 From: Con Kolivas To: Peter Zijlstra Subject: Re: [PATCH] swap-prefetch, fix lru_cache_add_tail() Date: Thu, 18 May 2006 16:39:53 +1000 User-Agent: KMail/1.9.1 Cc: Andrew Morton , linux-kernel , linux-mm References: <1147884867.22400.9.camel@lappy> In-Reply-To: <1147884867.22400.9.camel@lappy> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605181639.53546.kernel@kolivas.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 919 Lines: 28 On Thursday 18 May 2006 02:54, Peter Zijlstra wrote: > From: Peter Zijlstra > > lru_cache_add_tail() uses the inactive per-cpu pagevec. This causes > normal inactive and intactive tail inserts to end up on the wrong end > of the list. > > When the pagevec is completed by lru_cache_add_tail() but still contains > normal inactive pages, all pages will be added to the inactive tail and > vice versa. > > Also *add_drain*() will always complete to the inactive head. > > Add a third per-cpu pagevec to alleviate this problem. Thanks! > Signed-off-by: Peter Zijlstra Signed-off-by: Con Kolivas -- -ck - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/