From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 28 Apr 2006 17:54:59 -0700 (PDT) From: Christoph Lameter Subject: Re: [PATCH 1/7] page migration: Reorder functions in migrate.c In-Reply-To: <20060428173650.146a6605.akpm@osdl.org> Message-ID: References: <20060428060302.30257.76871.sendpatchset@schroedinger.engr.sgi.com> <20060428150806.057b0bac.akpm@osdl.org> <20060428161830.7af8c3f0.akpm@osdl.org> <20060428173650.146a6605.akpm@osdl.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Andrew Morton Cc: linux-mm@kvack.org, kamezawa.hiroyu@jp.fujitsu.com, lee.schermerhorn@hp.com, hugh@veritas.com List-ID: On Fri, 28 Apr 2006, Andrew Morton wrote: > hm. migrate_pages() locks two pages at the same time. We've avoided doing > that. > > a) what prevents ab/ba deadlocks in the migration code? Ahh. I forgot. Deadlocks are prevented because the page is freshly allocated and only has a single reference that we are holding. -- 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