From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 24 Jun 2005 08:41:05 -0700 (PDT) From: Christoph Lameter Subject: Re: [Lhms-devel] Re: [PATCH 2.6.12-rc5 0/10] mm: manual page migration-rc3 -- overview In-Reply-To: <42BC1573.90201@engr.sgi.com> Message-ID: References: <20050622163908.25515.49944.65860@tomahawk.engr.sgi.com> <42BC1573.90201@engr.sgi.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Ray Bryant Cc: Ray Bryant , Hirokazu Takahashi , Andi Kleen , Dave Hansen , Marcelo Tosatti , Christoph Hellwig , Ray Bryant , linux-mm , lhms-devel@lists.sourceforge.net, Paul Jackson , Nathan Scott List-ID: On Fri, 24 Jun 2005, Ray Bryant wrote: > In general, process flags are only updatable by the current process. > There is no locking applied. Having the migrating task set the PF_FREEZE > bit in the migrated process runs the risk of losing the update to some other > flags bit that is simultaneously set by the (running) migrated process. Look at freeze_processes(). It takes a read lock on tasklist_lock. So if you take a write lock on tasklist lock then you could be safe that no other process sets PF_FREEZE while migrating. Maybe we could downgrade that to a readlock if we would modify freeze_processes to to a test and test and use a test and set during migration. -- 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: aart@kvack.org