Messages in this thread | | | Date | Tue, 20 Jul 2004 10:21:41 -0200 | From | Jens Axboe <> | Subject | Re: [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/
| |