Il 09/03/2012 17:31, Kevin Wolf ha scritto: >> > Move the bdrv_co_write_zeroes operation to bdrv_aio_discard, so that >> > the ugly coroutine loop can be eliminated. >> > >> > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > But the logically correct (and therefore easier to understand) way would > be to let bdrv_aio_discard call bdrv_co_write_zeroes instead of the > other way round. Mapping write_zeroes to discard is only correct as long > as QED implements discard as zero writes instead of really discarding data.
Well, bdrv_co_write_zeroes will disappear soon. Paolo