On Fri, Apr 20, 2012 at 3:12 AM, Peter A. G. Crosthwaite <peter.crosthwa...@petalogix.com> wrote: > +static inline void flash_sync_area(struct flash *s, int64_t off, int64_t len) > +{ > + int64_t start, end; > + > + if (!s->bdrv) { > + return; > + } > + > + start = off / 512; > + end = (off + len) / 512; > + bdrv_write(s->bdrv, start, s->storage + (start * 512), end - start);
Is it possible to use bdrv_aio_write() like in flash_sync_page()? Stefan