From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 13 Apr 2007 17:54:37 +0100 (BST) From: Hugh Dickins Subject: Re: [patch 9/9] mm: lockless test threads In-Reply-To: <20070412103330.5564.31067.sendpatchset@linux.site> Message-ID: References: <20070412103151.5564.16127.sendpatchset@linux.site> <20070412103330.5564.31067.sendpatchset@linux.site> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Nick Piggin Cc: Linux Memory Management , Andrew Morton List-ID: On Thu, 12 Apr 2007, Nick Piggin wrote: > Introduce a basic lockless pagecache test harness. I don't know what value > this has, because it hasn't caught a bug yet, but it might help with testing. > > Signed-off-by: Nick Piggin A couple of fixes to fold in: the modular build needs two exports; and I got divide-by-0 with mem=512M to a HIGHMEM kernel. Signed-off-by: Hugh Dickins --- 2.6.21-rc6-np/mm/lpctest.c 2007-04-13 15:25:41.000000000 +0100 +++ linux/mm/lpctest.c 2007-04-13 17:36:22.000000000 +0100 @@ -122,6 +122,8 @@ static int lpc_random_thread(void *arg) unsigned int times; struct page *page; + if (!zone->spanned_pages) + continue; pfn = zone->zone_start_pfn + lpc_random(&rand) % zone->spanned_pages; if (!pfn_valid(pfn)) --- 2.6.21-rc6-np/mm/mmzone.c 2007-02-04 18:44:54.000000000 +0000 +++ linux/mm/mmzone.c 2007-04-13 16:10:06.000000000 +0100 @@ -42,3 +42,7 @@ struct zone *next_zone(struct zone *zone return zone; } +#ifdef CONFIG_LPC_TEST_MODULE +EXPORT_SYMBOL_GPL(first_online_pgdat); +EXPORT_SYMBOL_GPL(next_zone); +#endif -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org