]> git.proxmox.com Git - mirror_qemu.git/commit
block: directly invoke .bdrv_* from emulation functions
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Thu, 13 Oct 2011 12:08:21 +0000 (13:08 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 13 Oct 2011 13:02:53 +0000 (15:02 +0200)
commit1ed20acf2f581480436fb621995ef7c18fa75fad
tree78ab05e91de8809281c343bd4a4eeb820f92b467
parenta652d16025030013116c4d63883b9e1ec08a4359
block: directly invoke .bdrv_* from emulation functions

The emulation functions which supply default BlockDriver .bdrv_*()
functions given another implemented .bdrv_*() function should not use
public bdrv_*() interfaces.  This patch ensures they invoke .bdrv_*()
directly to avoid adding an extra layer of coroutine request processing
and possibly entering an infinite loop.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c