Re: Concurrent read/writes on the same file

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Sun, 13 Dec 1998 17:21:55 +0000


On Sun, Dec 13, 1998 at 09:49:46AM -0400, Horst von Brand wrote:
> I wrote:
> > Wouldn't a per-inode rwlock_t be efficient for this? (Instead of the
> > current per-inode writer semaphore).
>
> reads/writes are not guaranteed to finish quickly, son spinlocks aren't
> appropiate here.

Oh, darn. I didn't notice rwlock_t was a spinlock.
Consider the name misleading!

I meant a read-write semaphore, which it appears we don't have.
Why not?

-- Jamie

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