Re: Locking scheme to block less

From: Rik van Riel
Date: Tue Aug 10 2004 - 21:09:03 EST


On Mon, 9 Aug 2004, John Richard Moser wrote:
> Rik van Riel wrote:
> > On Mon, 9 Aug 2004, John Richard Moser wrote:

> >>Currently, the kernel uses only spin_locks,
> >
> > Oh ? Haven't you seen the read/write locks in
> > include/linux/spinlock.h or the lockless synchronisation
> > provided by include/linux/rcu.h ?
>
> No, last I looked was in 2.4, and it was a passing glance long ago.

We've had read write locks since 2.2...

--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

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