From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail202.messagelabs.com (mail202.messagelabs.com [216.82.254.227]) by kanga.kvack.org (Postfix) with SMTP id F312162008E for ; Wed, 7 Apr 2010 22:57:23 -0400 (EDT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PATCH 63 of 67] disable migreate_prep() Message-Id: <34a31b5dcd314ad1bd89.1270691506@v2.random> In-Reply-To: References: Date: Thu, 08 Apr 2010 03:51:46 +0200 From: Andrea Arcangeli Sender: owner-linux-mm@kvack.org To: linux-mm@kvack.org, Andrew Morton Cc: Marcelo Tosatti , Adam Litke , Avi Kivity , Izik Eidus , Hugh Dickins , Nick Piggin , Rik van Riel , Mel Gorman , Dave Hansen , Benjamin Herrenschmidt , Ingo Molnar , Mike Travis , KAMEZAWA Hiroyuki , Christoph Lameter , Chris Wright , bpicco@redhat.com, KOSAKI Motohiro , Balbir Singh , Arnd Bergmann , "Michael S. Tsirkin" , Peter Zijlstra , Johannes Weiner , Daisuke Nishimura , Chris Mason List-ID: From: Andrea Arcangeli I get trouble from lockdep if I leave it enabled: ======================================================= [ INFO: possible circular locking dependency detected ] 2.6.34-rc3 #50 ------------------------------------------------------- largepages/4965 is trying to acquire lock: (events){+.+.+.}, at: [] flush_work+0x38/0x130 but task is already holding lock: (&mm->mmap_sem){++++++}, at: [] do_page_fault+0xd2/0x430 flush_work apparently wants to run free from lock and it bugs in: lock_map_acquire(&cwq->wq->lockdep_map); Signed-off-by: Andrea Arcangeli --- diff --git a/mm/compaction.c b/mm/compaction.c --- a/mm/compaction.c +++ b/mm/compaction.c @@ -379,7 +379,9 @@ static int compact_zone(struct zone *zon cc->free_pfn = cc->migrate_pfn + zone->spanned_pages; cc->free_pfn &= ~(pageblock_nr_pages-1); +#if 0 migrate_prep(); +#endif while ((ret = compact_finished(zone, cc)) == COMPACT_INCOMPLETE) { unsigned long nr_migrate, nr_remaining; -- 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