Re: [PATCH 2.6.25-rc7 resubmit] Fix itimer/many thread hang.

From: Andrew Morton
Date: Tue Apr 01 2008 - 14:46:23 EST


On Fri, 28 Mar 2008 15:46:40 -0700
Frank Mayhar <fmayhar@xxxxxxxxxx> wrote:

> asmlinkage long sys_times(struct tms __user * tbuf)
> {
> + struct thread_group_cputime thread_group_times;
> +
> /*
> * In the SMP world we might just be unlucky and have one of
> * the times increment as we use it. Since the value is an
> @@ -873,19 +875,28 @@ asmlinkage long sys_times(struct tms __user * tbuf)
> if (tbuf) {
> struct tms tmp;
> struct task_struct *tsk = current;
> - struct task_struct *t;
> cputime_t utime, stime, cutime, cstime;
>
> spin_lock_irq(&tsk->sighand->siglock);
> - utime = tsk->signal->utime;
> - stime = tsk->signal->stime;
> - t = tsk;
> - do {
> - utime = cputime_add(utime, t->utime);
> - stime = cputime_add(stime, t->stime);
> - t = next_thread(t);
> - } while (t != tsk);
> -
> + /*
> + * If a POSIX interval timer is running use the process-wide
> + * fields, else fall back to brute force.
> + */
> + if (sig->thread_group_times) {

kernel/sys.c: In function 'sys_times':
kernel/sys.c:885: error: 'sig' undeclared (first use in this function)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/