Re: Hibernation Redesign

Miklos Szeredi
2007-07-11T12:56:29Z

> The point to freezing tasks isn't just to stop drivers doing work. It's also
> to stop userspace doing work and thereby increase reliability. The more work
> that is occuring while we're trying to write a hibernation image, the less
> reliable the hibernation will be (competing for memory and so on) and the
> slower it will be (competing for cycles etc).

We are talking about a kexec based hibernate. All of the above just
doesn't apply in that case.

I'm not contending, that the current hibernation (epecially Pavel's
new userspace based one) needs a frozen userland.

> > > Why? How can such ordering be determined programmatically?
> >
> > It can't. If you are interested, please read through that thread. If
> > something's still not clear, let's discuss it further.
>
> You can say it "imposes certain ordering" but you can say what that ordering
> is?! How about mount order? That must be a good start.

The order in which tasks are relying on each other to be able to
finish a syscall.

Mount order says _nothing_ about tasks.

Miklos