[lkml]   [1999]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    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
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:52    [W:0.019 / U:5.512 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site