[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <E1I6Yqk-00022q-00@dorka.pomaz.szeredi.hu>
Date: Thu, 05 Jul 2007 23:26:54 +0200
From: Miklos Szeredi <miklos@...redi.hu>
To: stern@...land.harvard.edu
CC: miklos@...redi.hu, oliver@...kum.org, pavel@....cz,
paulus@...ba.org, johannes@...solutions.net, rjw@...k.pl,
linux-pm@...ts.linux-foundation.org, linux-kernel@...r.kernel.org,
mjg59@...f.ucam.org, benh@...nel.crashing.org
Subject: Re: [linux-pm] Re: [PATCH] Remove process freezer from suspend to
RAM pathway
> > I fear, that your efforts to "save" the freezer are in vain. It is
> > already moderately hackish with that PF_FREEZER_SKIP and the kernel
> > dotted randomly with try_to_freeze() calls, but adding bandaids to try
> > to order freezing userspace processes in the right order would just
> > make it a horrible mess.
>
> I agree that bandaids won't work. What's needed is something more
> radical. Things like FUSE must be written so that the kernel parts
> _can_ freeze even while they are waiting for a response from a user
> thread.
This has already been discussed, with the conclusion, that it can't be
done without hacking VFS internals.
The basic problem is that the freezer tries to get every user process
out of the kernel even when those processes have _nothing_ to do with
drivers and could happily stay in kernel land across a suspend or even
hibernate.
If we could have a good grip on when a request is entering a driver,
it would be easy to take care of this. I guess network and block
devices are easy. For others there's no obvious common place where
such barriers could be placed so it's more work, but nothing
conceptually problematic. Is this about right?
Miklos
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists