[lkml]   [2004]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: msync() behaviour broken for MS_ASYNC, revert patch?

    On Wed, 31 Mar 2004, Stephen C. Tweedie wrote:
    > although I can't find an unambiguous definition of "queued for service"
    > in the online standard. I'm reading it as requiring that the I/O has
    > reached the block device layer, not simply that it has been marked dirty
    > for some future writeback pass to catch; Uli agrees with that
    > interpretation.

    That interpretation makes pretty much zero sense.

    If you care about the data hitting the disk, you have to use fsync() or
    similar _anyway_, and pretending anything else is just bogus.

    As such, just marking the pages dirty is as much of a "queing" them for
    write as actually writing them, since in both cases the guarantees are
    _exactly_ the same: the pages have not hit the disk by the time the system
    call returns, but will hit the disk at some time in the future.

    Having the requirement that it is on some sw-only request queue is
    nonsensical, since such a queue is totally invisible from a user

    User space has no idea about "block device layer" vs "VM layer" queues,
    and trying to distinguiosh between the two is madness. It's just an
    internal implementation issue that has no meaning to the user.

    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: 2009-11-18 23:46    [W:0.031 / U:1.220 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site