Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default

2007-05-29 Thread Nigel Cunningham
Hi. On Wed, 2007-05-30 at 00:13 +0200, Rafael J. Wysocki wrote: > On Tuesday, 29 May 2007 14:59, Nigel Cunningham wrote: > > Hi. > > > > On Tue, 2007-05-29 at 14:15 +0200, Rafael J. Wysocki wrote: > > > Please have a look at the current version of the patch (appended). > > > > > > I have followe

Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default

2007-05-29 Thread Rafael J. Wysocki
On Tuesday, 29 May 2007 14:59, Nigel Cunningham wrote: > Hi. > > On Tue, 2007-05-29 at 14:15 +0200, Rafael J. Wysocki wrote: > > Please have a look at the current version of the patch (appended). > > > > I have followed the Nigel's suggestion not to change the current behavior > > in this patch (

Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default

2007-05-29 Thread Rafael J. Wysocki
On Tuesday, 29 May 2007 14:48, Pavel Machek wrote: > Hi! > > > > Well.. it can write anywhere it wants (filesystem or not) as long as > > > the system is not going to be confused after resume by its caches not > > > matching on-disk state. I'd prefer it not to write anywhere at all. > > > > OK >

Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default

2007-05-29 Thread Linus Torvalds
On Tue, 29 May 2007, Rafael J. Wysocki wrote: > > 64 files changed, 230 insertions(+), 113 deletions(-) Heh. Your previous patch removed more lines than it added, this one adds more lines than it removes. Snif.. I realize that it's all from that Documentation update: Documentation/power/fre

Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default

2007-05-29 Thread Pavel Machek
Hi! > > Well.. it can write anywhere it wants (filesystem or not) as long as > > the system is not going to be confused after resume by its caches not > > matching on-disk state. I'd prefer it not to write anywhere at all. > > OK > > Please have a look at the current version of the patch (append

Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default

2007-05-29 Thread Nigel Cunningham
Hi. On Tue, 2007-05-29 at 14:15 +0200, Rafael J. Wysocki wrote: > Please have a look at the current version of the patch (appended). > > I have followed the Nigel's suggestion not to change the current behavior > in this patch (I'll add a couple of patches removing the freezability from > some ke

Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default

2007-05-29 Thread Rafael J. Wysocki
Hi, On Tuesday, 29 May 2007 13:31, Pavel Machek wrote: > Hi! > > > > > Index: linux-2.6.22-rc3/Documentation/power/kernel_threads.txt > > > > === > > > > --- linux-2.6.22-rc3.orig/Documentation/power/kernel_threads.txt > > > > +++ li

Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default

2007-05-29 Thread Pavel Machek
Hi! > > > Index: linux-2.6.22-rc3/Documentation/power/kernel_threads.txt > > > === > > > --- linux-2.6.22-rc3.orig/Documentation/power/kernel_threads.txt > > > +++ linux-2.6.22-rc3/Documentation/power/kernel_threads.txt > > > @@ -1,13

Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default

2007-05-28 Thread Nigel Cunningham
Hi. On Tue, 2007-05-29 at 00:51 +0200, Rafael J. Wysocki wrote: > > The copy_flags routine changes another process's flags - that's why > I > > was suggesting this. > > Yes, it does, but I'm dropping the clearing of PF_NOFREEZE from there, > not adding anything new. :-) Doh! Sorry :) Nigel si

Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default

2007-05-28 Thread Rafael J. Wysocki
On Monday, 28 May 2007 23:26, Nigel Cunningham wrote: > Hi. > > On Mon, 2007-05-28 at 20:17 +0200, Rafael J. Wysocki wrote: > > On Monday, 28 May 2007 11:46, Nigel Cunningham wrote: > > > Hello! > > > > > > In reply to your more recent message, I had looked but not tried, so > > > didn't feel in

Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default

2007-05-28 Thread Nigel Cunningham
Hi. On Mon, 2007-05-28 at 20:17 +0200, Rafael J. Wysocki wrote: > On Monday, 28 May 2007 11:46, Nigel Cunningham wrote: > > Hello! > > > > In reply to your more recent message, I had looked but not tried, so > > didn't feel in a position to reply yet. > > > > On Sun, 2007-05-27 at 00:12 +0200, R

Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default

2007-05-28 Thread Rafael J. Wysocki
On Monday, 28 May 2007 11:46, Nigel Cunningham wrote: > Hello! > > In reply to your more recent message, I had looked but not tried, so > didn't feel in a position to reply yet. > > On Sun, 2007-05-27 at 00:12 +0200, Rafael J. Wysocki wrote: > > 63 files changed, 78 insertions(+), 138 deletions(

Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default

2007-05-28 Thread Rafael J. Wysocki
On Monday, 28 May 2007 12:33, Pavel Machek wrote: > Hi! > > > Index: linux-2.6.22-rc3/Documentation/power/kernel_threads.txt > > === > > --- linux-2.6.22-rc3.orig/Documentation/power/kernel_threads.txt > > +++ linux-2.6.22-rc3/Documen

Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default

2007-05-28 Thread Rafael J. Wysocki
On Monday, 28 May 2007 12:30, Pavel Machek wrote: > Hi! > > > > This patch is on top of the "Freezer: Avoid freezing kernel threads > > > prematurely" > > > patch that I posted yestarday, available at > > > http://lkml.org/lkml/2007/5/25/199 > > > (updated version that applies cleanly on top of

Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default

2007-05-28 Thread Pavel Machek
Hi! > Index: linux-2.6.22-rc3/Documentation/power/kernel_threads.txt > === > --- linux-2.6.22-rc3.orig/Documentation/power/kernel_threads.txt > +++ linux-2.6.22-rc3/Documentation/power/kernel_threads.txt > @@ -1,13 +1,22 @@ > -KERNEL

Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default

2007-05-28 Thread Pavel Machek
Hi! > > This patch is on top of the "Freezer: Avoid freezing kernel threads > > prematurely" > > patch that I posted yestarday, available at > > http://lkml.org/lkml/2007/5/25/199 > > (updated version that applies cleanly on top of 2.6.22-rc3, is available at > > http://www.sisk.pl/kernel/hibern

Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default

2007-05-28 Thread Nigel Cunningham
Hello! In reply to your more recent message, I had looked but not tried, so didn't feel in a position to reply yet. On Sun, 2007-05-27 at 00:12 +0200, Rafael J. Wysocki wrote: > 63 files changed, 78 insertions(+), 138 deletions(-) Well, that looks good, for a start :) > Index: linux-2.6.22-rc3

Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default

2007-05-28 Thread Rafael J. Wysocki
On Sunday, 27 May 2007 00:12, Rafael J. Wysocki wrote: > Hi, > > Following the "Freezing of kernel threads" discussion > (http://lkml.org/lkml/2007/5/12/162) I have created a patch that changes the > freezer's behavior with respect to kernel threads. Namely, with the patch > applied all kernel th