lkml.org 
[lkml]   [2005]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] Fix SMP brokenness for PF_FREEZE and make freezing usable for other purposes
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.
-----------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-06-27 17:31    [W:0.101 / U:0.728 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site