lkml.org 
[lkml]   [2004]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateMon, 19 Jul 2004 00:16:53 +0200
FromPavel Machek <>
SubjectRe: [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/

\
 
 \ /
  Last update: 2005-03-22 14:04    [from the cache]
©2003-2010