]> git.proxmox.com Git - mirror_qemu.git/commit - block/qed.c
qed: move tail of qed_aio_write_main to qed_aio_write_{cow, alloc}
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Jun 2017 13:27:44 +0000 (15:27 +0200)
committerFam Zheng <famz@redhat.com>
Mon, 17 Jul 2017 03:28:15 +0000 (11:28 +0800)
commite7569c18292e1e17004d88a4543e2dfcdb2f6d90
tree968a250464567f04b0db43d979796a09bf6c7a97
parent254aee4dbbec1b8ab0de23c435e927d1501bae34
qed: move tail of qed_aio_write_main to qed_aio_write_{cow, alloc}

This part is never called for in-place writes, move it away to avoid
the "backwards" coding style typical of callback-based code.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20170629132749.997-7-pbonzini@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
block/qed.c