Re: swsusp3: system suspend/resume from userspace

Benjamin Herrenschmidt
2005-09-21T10:32:30Z

[-- Attachment #1: Type: text/plain, Size: 729 bytes --]

> I still do my "userspace freezing", except that it does not freeze the
> process doing that. (Thats no change from previous design,
> BTW). System snapshot works single CPU and with interrupts disabled;
> so it indeed should be atomic. That should mean there are no
> interesting races, as long as userspace app is not doing anything
> stupid.

Which include things like taking page faults etc... are you mlock'ing it
all ? I really don't see the point though. It's not like we actually
need a 3rd version of swsusp, and there are plenty of other more
important things to work on !

> Userland application is currently simple port of kernel swsusp.c into
> userspace, so it should not do anything stupid...
>
> Pavel