Re: [tip:locking/core] rwsem: Add comments to explain the meaning of the rwsem's count field

From: Davidlohr Bueso
Date: Mon May 05 2014 - 22:30:48 EST


On Mon, 2014-05-05 at 15:51 -0700, Tim Chen wrote:
> On Mon, 2014-05-05 at 20:27 +0200, Ingo Molnar wrote:
>
> > > Ingo,
> > >
> > > The delta patch is included below. Thinking a bit more,
> > > the state diagram approach is not necessarily less verbose
> > > because the state is a tuple (count, wait queue state).
> > > After enumerating the states, we may wind up with very similar
> > > to what I have.
> >
> > Could we at least try with one diagram and see how it goes?
> >
>
> I've tried (see below). But I don't like how it came out :(

And quite nice, thanks for doing this. Personally, however, I much
prefer the already applied patch to this approach.

Thanks,
Davidlohr

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