lkml.org 
[lkml]   [2004]   [Apr]   [19]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 19 Apr 2004 11:09:34 +0200
FromPavel Machek <>
SubjectRe: [PATCH] Rename PF_IOTHREAD.
Hi!

> A few weeks ago, Pavel and I agreed that PF_IOTHREAD should be renamed
> to PF_NOFREEZE. This reflects the fact that some threads so marked
> aren't actually used for IO while suspending, but simply shouldn't be
> frozen. This patch, against 2.6.5 vanilla, applies that change. In the
> refrigerator calls, the actual value doesn't matter (so long as it's
> non-zero) and it makes more sense to use PF_FREEZE so I've used that.
> 
> Please apply.

Patch looks good. [Except that I'm not sure if this hunk will apply;
there were changes for ^Z in this area].
								Pavel


> diff -ruN linux-2.6.5/kernel/power/process.c linux-2.6.5-NoFreeze/kernel/power/process.c
> --- linux-2.6.5/kernel/power/process.c	2004-01-13 14:16:35.000000000 +1100
> +++ linux-2.6.5-NoFreeze/kernel/power/process.c	2004-04-19 16:47:24.000000000 +1000
> @@ -28,7 +28,7 @@
>  static inline int freezeable(struct task_struct * p)
>  {
>  	if ((p == current) || 
> -	    (p->flags & PF_IOTHREAD) || 
> +	    (p->flags & PF_NOFREEZE) || 
>  	    (p->state == TASK_ZOMBIE) ||
>  	    (p->state == TASK_DEAD))
>  		return 0;

-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:02    [from the cache]
©2003-2008