Messages in this thread |  | | | Date | Mon, 19 Jul 2004 00:16:53 +0200 | | From | Pavel Machek <> | | Subject | Re: [12/25] Merge pmdisk and swsusp |
| |
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? Pavel -- Horseback riding is like software... ...vgf orggre jura vgf serr. - 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/
|  |