Re: Freezer Patches.

Nigel Cunningham
2005-06-02T08:18:31Z

Hi Ben.

On Thu, 2005-06-02 at 17:36, Benjamin Herrenschmidt wrote:
> Whatever you guys decide to do (I actually do sys_sync() before freezing
> on pmac and yes, it takes sometimes way too long), to be uber-safe, we
> could/should _also_ do sync after freezing userland processes and before
> freezing kernel threads (that is, splitting here). In fact, that would
> help also avoid deadlocks where a frozen kernel thread is holding a
> semaphore preventing a process from freezing.
>
> That way, if we sys_sync() once processes are sleeping and before kernel
> threads are, we pretty-much make sure no new dirty buffer will appear.
>
> Anyway, that's mostly food for thoughts at this point

I fully agree, and that's what I'm already doing. Nothing I can do about
Pavel not seeing logic, so guess I just have to hope everyone else does
:)

Regards,

Nigel