lkml.org 
[lkml]   [2003]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 2.0, 2.2, 2.4, 2.5: fsync buffer race
    Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> wrote:
    >
    > > void wait_and_rw_block(...)
    > > {
    > > wait_on_buffer(bh);
    > > ll_rw_block(...);
    > > }
    >
    > It would fail if other CPU submits IO with ll_rw_block after
    > wait_on_buffer but before ll_rw_block.

    In that case, the caller's data gets written anyway, and the caller will wait
    upon the I/O which the other CPU started. So the ll_rw_block() behaviour is
    appropriate.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

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