lkml.org 
[lkml]   [2004]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [12/25] Merge pmdisk and swsusp
    On Mon, Jul 19 2004, Pavel Machek wrote:
    > Hi!
    >
    > > +static void wait_io(void)
    > > +{
    > > + while(atomic_read(&io_done))
    > > + io_schedule();
    > > +}
    > ...
    > > + submit_bio(rw | (1 << BIO_RW_SYNC), bio);
    > > + wait_io();
    > > + Done:
    > > + bio_put(bio);
    > > + return error;
    > > +}
    >
    > Perhaps it is worth it to inline wait_io?

    Since it's not a fast path, does it matter?

    --
    Jens Axboe

    -
    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 14:04    [W:0.021 / U:0.080 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site