[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [Qemu-block] [PATCH 05/17] block: Convert BB interface to byte-based discards



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 <eblake@xxxxxxxxxx>
> ---
>  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 <stefanha@xxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.