]> Git Repo - qemu.git/commitdiff
block: Convert bdrv_co_preadv/pwritev to BdrvChild
authorKevin Wolf <[email protected]>
Mon, 20 Jun 2016 19:31:46 +0000 (21:31 +0200)
committerKevin Wolf <[email protected]>
Tue, 5 Jul 2016 14:46:27 +0000 (16:46 +0200)
This is the final patch for converting the common I/O path to take
a BdrvChild parameter instead of BlockDriverState.

The completion of this conversion means that all users that perform I/O
on an image need to actually hold a reference (in the form of BdrvChild,
possible as part of a BlockBackend) to that image. This also protects
against inconsistent use of BlockBackend vs. BlockDriverState functions
because direct use of a BlockDriverState isn't possible any more and
blk->root is private for block-backends.c.

In addition, we can now distinguish different users in the I/O path,
and the future op blockers work is going to add assertions based on
permissions stored in BdrvChild.

Signed-off-by: Kevin Wolf <[email protected]>
Acked-by: Stefan Hajnoczi <[email protected]>

No differences found
This page took 0.025167 seconds and 4 git commands to generate.