Re: [RFC][PATCH 4/8] mm: RCU free vmas

From: Paul E. McKenney
Date: Tue Jan 05 2010 - 11:05:16 EST


On Tue, Jan 05, 2010 at 09:28:36AM +0100, Peter Zijlstra wrote:
> On Mon, 2010-01-04 at 18:43 -0800, Paul E. McKenney wrote:
> > On Mon, Jan 04, 2010 at 07:24:33PM +0100, Peter Zijlstra wrote:
> > > TODO:
> > > - should be SRCU, lack of call_srcu()
> > >
> > > In order to allow speculative vma lookups, RCU free the struct
> > > vm_area_struct.
> > >
> > > We use two means of detecting a vma is still valid:
> > > - firstly, we set RB_CLEAR_NODE once we remove a vma from the tree.
> > > - secondly, we check the vma sequence number.
> > >
> > > These two things combined will guarantee that 1) the vma is still
> > > present and two, it still covers the same range from when we looked it
> > > up.
> >
> > OK, I think I see what you are up to here. I could get you a very crude
> > throw-away call_srcu() fairly quickly. I don't yet have a good estimate
> > of how long it will take me to merge SRCU into the treercu infrastructure,
> > but am getting there.
> >
> > So, which release are you thinking in terms of?
>
> I'm not thinking any release yet, its very early and as Linus has
> pointed out, I seem to have forgotten a rather big piece of the
> picture :/
>
> So I need to try and fix this glaring hole before we can continue.

OK, then I will think in terms of merging SRCU into treercu before
providing any sort of call_srcu().

Thanx, Paul
--
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/