]> git.proxmox.com Git - mirror_qemu.git/commit
coroutine: add flag to re-queue at front of CoQueue
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 13 Oct 2022 18:58:56 +0000 (14:58 -0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 26 Oct 2022 18:56:42 +0000 (14:56 -0400)
commit0421b563ab4d947a388078331c057daa9b979f41
tree2806a9b2fec0cb8e8865016d269f9b4ec6071457
parent79fc2fb685f35a5e71e23629760ef4025d6aba31
coroutine: add flag to re-queue at front of CoQueue

When a coroutine wakes up it may determine that it must re-queue.
Normally coroutines are pushed onto the back of the CoQueue, but for
fairness it may be necessary to push it onto the front of the CoQueue.

Add a flag to specify that the coroutine should be pushed onto the front
of the CoQueue. A later patch will use this to ensure fairness in the
bounce buffer CoQueue used by the blkio BlockDriver.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20221013185908.1297568-2-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
include/qemu/coroutine.h
util/qemu-coroutine-lock.c