[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
    Alexander Viro wrote:
    > 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.

    Sure sounds that way. Note that you don't really want truncate()/write()
    to be strictly serialized, you just want to serialize things that will
    change the length of the file (i.e. truncate and append) So does the
    locking on the inode save us here?

    If not, there will be a need for a new lock protecting the length of
    the file. This might also make the simultaneous-writers case that
    people were talking about work out better.


    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:51.336 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site