Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 15 Aug 2002 18:54:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 15 Aug 2002 18:54:43 -0400 Received: from bay-bridge.veritas.com ([143.127.3.10]:39077 "EHLO mtvmime01.veritas.com") by vger.kernel.org with ESMTP id ; Thu, 15 Aug 2002 18:54:43 -0400 Date: Thu, 15 Aug 2002 23:59:08 +0100 (BST) From: Hugh Dickins X-X-Sender: hugh@localhost.localdomain To: Andrew Morton cc: j-nomura@ce.jp.nec.com, Subject: Re: 2.4.18(19) swapcache oops In-Reply-To: <3D5C0995.CEE36FC8@zip.com.au> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 968 Lines: 32 On Thu, 15 Aug 2002, Andrew Morton wrote: > Hugh Dickins wrote: > > On Thu, 15 Aug 2002 j-nomura@ce.jp.nec.com wrote: > > > > > > I'm using 2.4.18 kernel and suspect there are swapcache race. > > > I looked into 2.4.19 patch but could not find the fix to it. > > > > I see a benign race but no oops. > > But look at lru_cache_add(): > > void lru_cache_add(struct page * page) > { > if (!TestSetPageLRU(page)) { > /* window here */ > spin_lock(&pagemap_lru_lock); > add_page_to_inactive_list(page); > spin_unlock(&pagemap_lru_lock); > } > } > > It sets PG_lru before adding the page to the LRU. Right you are! Thanks for correcting my dysanalysis. Hugh - 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/