]> git.proxmox.com Git - mirror_qemu.git/commit - block/nbd-client.c
nbd: Simplify client FUA handling
authorEric Blake <eblake@redhat.com>
Tue, 3 May 2016 22:39:08 +0000 (16:39 -0600)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 May 2016 13:22:09 +0000 (15:22 +0200)
commit52a46505742cce4b4b7f88d32636f848287e6bfb
tree64c2f21815b3a07ae4bcdbb3ac5a8572094d8635
parent465fe887ccdcb62733666f6e91d85e88b7184298
nbd: Simplify client FUA handling

Now that the block layer honors per-bds FUA support, we don't
have to duplicate the fallback flush at the NBD layer.  The
static function nbd_co_writev_flags() is no longer needed, and
the driver can just directly use nbd_client_co_writev().

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/nbd-client.c
block/nbd-client.h
block/nbd.c