On Wed, Jun 22, 2016 at 09:51:02AM -0600, Eric Blake wrote: > Change sector-based blk_discard(), blk_co_discard(), and > blk_aio_discard() to instead be byte-based *_pdiscard() > functions. NBD gets a lot simpler now that ignoring the > unaligned portion of a byte-based discard request is handled > under the hood by the block layer. > > Signed-off-by: Eric Blake <ebl...@redhat.com> > --- > include/sysemu/block-backend.h | 9 ++++----- > block/block-backend.c | 25 +++++++++++-------------- > block/mirror.c | 5 +++-- > hw/block/xen_disk.c | 7 ++++--- > hw/ide/core.c | 6 ++++-- > hw/scsi/scsi-disk.c | 8 ++++---- > nbd/server.c | 19 +++++-------------- > qemu-io-cmds.c | 3 +-- > 8 files changed, 36 insertions(+), 46 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
signature.asc
Description: PGP signature
_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel