|
From: | Kevin Wolf |
Subject: | Re: [Qemu-devel] [RFC PATCH 04/17] qed: implement bdrv_aio_discard |
Date: | Fri, 09 Mar 2012 17:31:28 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120209 Thunderbird/10.0.1 |
Am 08.03.2012 18:15, schrieb Paolo Bonzini: > 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 <address@hidden> 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. Kevin
[Prev in Thread] | Current Thread | [Next in Thread] |