lkml.org 
[lkml]   [1999]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: parallel writes to the same file, 2.3.7

On Tue, 22 Jun 1999, Alexander Viro wrote:

> > added/enabled by the new pagecache: now file writes can happen in
> > parallel, even at once (if on an SMP box).
> >
> > Until 2.3.7 all file writes were serialized by the 'inode semaphore', ie.
> > one big write excluded all other writers until the big write finished.
>
> Caution: side effect of that change was not pretty. truncate() used to be
> serialized wrt write(). Now it isn't. We might contract some races here.

check out block_*_write(), we get the inode semaphore when we allocate new
blocks. So most races should be taken care of.

-- mingo


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

\
 
 \ /
  Last update: 2005-03-22 13:52    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site