Re: [patch 10/21] mutex subsystem, debugging code

From: Ingo Molnar
Date: Fri Jan 06 2006 - 06:30:58 EST



* Matt Helsley <matthltc@xxxxxxxxxx> wrote:

> > Index: linux/kernel/fork.c
> > ===================================================================
> > --- linux.orig/kernel/fork.c
> > +++ linux/kernel/fork.c
> > @@ -973,6 +973,10 @@ static task_t *copy_process(unsigned lon
> > }
> > #endif
> >
> > +#ifdef CONFIG_DEBUG_MUTEXES
> > + p->blocked_on = NULL; /* not blocked yet */
> > +#endif
> > +
> > p->tgid = p->pid;
> > if (clone_flags & CLONE_THREAD)
> > p->tgid = current->tgid;
>
> Should there be a corresponding initialization of init's blocked_on
> field in include/linux/init_task.h?

no, since it's initialized to zero.

Ingo
-
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/