On Wed, May 15, 2013 at 11:55:13PM +0400, Andrew Vagin wrote: > > > > > > - if (s->real == thread_leader->real) > > > - is_leader = true; > > > + s = &tid_state[args->id]; > > > > Maybe we should add some BUG_ON(args->id > tid_state array-size) here? > > Yes, we can No need to resend, lets do it on top then.