]> git.proxmox.com Git - qemu.git/commit
sheepdog: use heap instead of stack for BDRVSheepdogState
authorMORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Wed, 16 May 2012 18:15:34 +0000 (03:15 +0900)
committerKevin Wolf <kwolf@redhat.com>
Fri, 25 May 2012 16:12:54 +0000 (18:12 +0200)
commitb6fc8245e96dea6b7198a46e883d107403ddb90c
treebbba397365af96105c046f6084cf9ce6c2c8af9b
parentcb595887cc4ddd7c732b711164756eb0b1b31077
sheepdog: use heap instead of stack for BDRVSheepdogState

bdrv_create() is called in coroutine context now, so we cannot use
more stack than 1 MB in the function if we use ucontext coroutine.
This patch allocates BDRVSheepdogState, whose size is 4 MB, on the
heap in sd_create().

Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/sheepdog.c