]> git.proxmox.com Git - mirror_qemu.git/commit - block/qed.c
qed: Use CoQueue for serialising allocations
authorKevin Wolf <kwolf@redhat.com>
Fri, 18 Nov 2016 14:32:17 +0000 (15:32 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 26 Jun 2017 12:51:15 +0000 (14:51 +0200)
commit0806c3b5dd1aced4c50eda65e9ecc9cfab4ee58e
tree2eb5b8cc2417d5881d0a26865ad510671964a858
parent89f89709c7c66edd95c2288eae7ec4006256348a
qed: Use CoQueue for serialising allocations

Now that we're running in coroutine context, the ad-hoc serialisation
code (which drops a request that has to wait out of coroutine context)
can be replaced by a CoQueue.

This means that when we resume a serialised request, it is running in
coroutine context again and its I/O isn't blocking any more.

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