]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
block: bump coroutine pool size for drives
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 7 Jul 2014 13:15:53 +0000 (15:15 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 15 Aug 2014 13:07:14 +0000 (15:07 +0200)
commit2a87151fb2725658f7419038a80f91065159f34b
treef47f1d7c104b542374399788e61289f24a4adad1
parentac2662a913ee5854b1269256adbdc14e57ba480a
block: bump coroutine pool size for drives

When a BlockDriverState is associated with a storage controller
DeviceState we expect guest I/O.  Use this opportunity to bump the
coroutine pool size by 64.

This patch ensures that the coroutine pool size scales with the number
of drives attached to the guest.  It should increase coroutine pool
usage (which makes qemu_coroutine_create() fast) without hogging too
much memory when fewer drives are attached.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block.c