]> git.proxmox.com Git - mirror_qemu.git/commit - block/qed.c
qed: Simplify request handling
authorKevin Wolf <kwolf@redhat.com>
Fri, 18 Nov 2016 13:47:36 +0000 (14:47 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 26 Jun 2017 12:51:15 +0000 (14:51 +0200)
commit48cc565e767d1cb4965150d258ebd15a1b3de488
tree895f4ae830b88778a79412291278b699cc9037d9
parent0806c3b5dd1aced4c50eda65e9ecc9cfab4ee58e
qed: Simplify request handling

Now that we process a request in the same coroutine from beginning to
end and don't drop out of it any more, we can look like a proper
coroutine-based driver and simply call qed_aio_next_io() and get a
return value from it instead of spawning an additional coroutine that
reenters the parent when it's done.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qed.c
block/qed.h