[lkml]   [2006]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: PROBLEM: pthread-safety bug in write(2) on Linux 2.6.x
    Andrew Morton wrote:

    > OK, there _might_ be a real-world case: threads appending logging
    > information to a flat file. Trivially workable-around with a userspace
    > lock, or by switching to stdio (same thing).
    > Yes, really we should fix it. But it's not worth adding more overhead to
    > do so. So the fix would involve widespread (but simple) change, to draw
    > that f_pos update inside i_mutex.

    Didn't Linus explicitly made the decision not to add synchronisation for
    writes with the same file?
    Is the closest I could find, but I'm sure he said something similar,
    specifically about write(2) vs write(2).

    SUSE Labs, Novell Inc.
    Send instant messages to your online friends

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

     \ /
      Last update: 2006-04-13 09:36    [W:0.019 / U:80.124 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site