From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261166AbVF0PXI (ORCPT ); Mon, 27 Jun 2005 11:23:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262067AbVF0PWe (ORCPT ); Mon, 27 Jun 2005 11:22:34 -0400 Received: from omx2-ext.sgi.com ([192.48.171.19]:2693 "EHLO omx2.sgi.com") by vger.kernel.org with ESMTP id S261166AbVF0O54 (ORCPT ); Mon, 27 Jun 2005 10:57:56 -0400 Message-ID: <42C01455.7020803@engr.sgi.com> Date: Mon, 27 Jun 2005 09:59:33 -0500 From: Ray Bryant User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040805 Netscape/7.2 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pavel Machek CC: Kirill Korotaev , Christoph Lameter , linux-mm@kvack.org, linux-kernel@vger.kernel.org, torvalds@osdl.org, lhms Subject: Re: [RFC] Fix SMP brokenness for PF_FREEZE and make freezing usable for other purposes References: <1104805430.20050625113534@sw.ru> <42BFA591.1070503@engr.sgi.com> <20050627131709.GA30467@atrey.karlin.mff.cuni.cz> In-Reply-To: <20050627131709.GA30467@atrey.karlin.mff.cuni.cz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi Pavel, Pavel Machek wrote: > > Should be very easy to solve with one semaphore. Simply make swsusp > wait until all migrations are done. > This may not be needed. If I understand things correctly, the system won't suspsend until all tasks have returned from system calls and end up in the refrigerator. So if a memory migration is running when someone tries to suspend the system, the suspend won't occur until the memory migration system call returns. Is that correct? What happens if a system call calls schedule() (or otherwise gets blocked, e. g. by trying to obtain a semaphore?) -- Best Regards, Ray ----------------------------------------------- Ray Bryant 512-453-9679 (work) 512-507-7807 (cell) raybry@sgi.com raybry@austin.rr.com The box said: "Requires Windows 98 or better", so I installed Linux. -----------------------------------------------