« Return to Thread: [PATCH -mm 1/2] rename is_single_threaded(task) to is_current_single_threaded(void)

Re: [PATCH v2 -mm 2/2] current_is_single_threaded: don't use ->mmap_sem

by Oleg Nesterov-3 :: Rate this Message:

Reply to Author | View in Thread

On 07/13, James Morris wrote:

>
> On Fri, 10 Jul 2009, David Howells wrote:
>
> > > However we can avoid ->mmap_sem and rely on rcu/barriers:
> > >
> > > - if we do not see the exiting parent on thread/process list
> > >  we see the result of list_del_rcu(), in this case we must
> > >  also see the result of list_add_rcu() which does wmb().
> > >
> > > - if we do see the parent but its ->mm == NULL, we need rmb()
> > >  to make sure we can't miss the child.
> > >
> > > Signed-off-by: Oleg Nesterov <oleg@...>
> >
> > Acked-by: David Howells <dhowells@...>
>
> I gather this stuff is going into -mm ?

Yes, this is on top of rework-fix-is_single_threaded.patch

Given that David acked these changes, I guess they will go
to -mm soon.

> Can it be merged via security-testing#next?

Please do what you think right, I don't know what will be more
convenient to you and Andrew.

Oleg.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 « Return to Thread: [PATCH -mm 1/2] rename is_single_threaded(task) to is_current_single_threaded(void)