From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 28 Jun 2005 07:02:26 -0700 (PDT) From: Christoph Lameter Subject: Re: [RFC] Fix SMP brokenness for PF_FREEZE and make freezing usable for other purposes In-Reply-To: <42C10690.10108@sw.ru> Message-ID: References: <20050625025122.GC22393@atrey.karlin.mff.cuni.cz> <20050626023053.GA2871@atrey.karlin.mff.cuni.cz> <20050626030925.GA4156@atrey.karlin.mff.cuni.cz> <20050627141320.GA4945@atrey.karlin.mff.cuni.cz> <42C0EBAB.8070709@sw.ru> <42C0FCB3.4030205@sw.ru> <42C10690.10108@sw.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Kirill Korotaev Cc: Pavel Machek , Linus Torvalds , linux-mm@kvack.org, linux-kernel@vger.kernel.org, raybry@engr.sgi.com, Alexey Kuznetsov List-ID: On Tue, 28 Jun 2005, Kirill Korotaev wrote: > Christoph I was wrong a bit. Due to use of completion you have no one race I > described before. If the task is leaving refrigarator with TIF_FREEZE it will > just visit refrigarator() once more, but won't sleep there since completion > is done. BTW, I see no place where you initialize the completion. It is initialized through the DECLARE_COMPLETION in sched.c. -- 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