Re: [12/25] Merge pmdisk and swsusp
From: Pavel Machek
Date: Sun Jul 18 2004 - 17:17:54 EST
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/