[lkml]   [1998]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Concurrent read/writes on the same file

On Sun, 13 Dec 1998 17:21:55 +0000, Jamie Lokier
<> said:

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

Because nobody has implemented one yet.

FWIW, we don't need to lock stuff for write. What we _do_ need is to
lock allocations, and we need that for both read AND write. I think we
can probably fix all of the dangerous cases by adding a r/w truncate
semaphore to the inode, taking it in read mode for reads and writes and
in write mode for truncate(). That way we maintain concurrency while
still eliminating the nasty truncate races which caused that semaphore
to be put there in the first place.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:46    [W:0.042 / U:1.388 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site