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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Matt Helsley <[email protected]> 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux