[Devel] [RFC][PATCH 04/16] Use pid_to_nr() in process info functions

Pavel Emelianov xemul at sw.ru
Thu May 24 01:22:25 PDT 2007


> ===================================================================
> --- lx26-21-mm2.orig/kernel/timer.c	2007-05-22 16:58:38.000000000 -0700
> +++ lx26-21-mm2/kernel/timer.c	2007-05-22 16:59:44.000000000 -0700
> @@ -945,7 +945,7 @@ asmlinkage long sys_getppid(void)
>  	int pid;
>  
>  	rcu_read_lock();
> -	pid = rcu_dereference(current->real_parent)->tgid;
> +	pid = pid_to_nr(task_parent_tgid(current));

This breaks fsys_getppid() call in ia64...

>  	rcu_read_unlock();
>  
>  	return pid;
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list