Home
last modified time | relevance | path

Searched hist:"973 f2ddf7b48c27aa8642047796cca3bec0b48d8" (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/include/block/
H A Dthrottle-groups.hdiff 973f2ddf7b48c27aa8642047796cca3bec0b48d8 Mon Oct 19 10:53:23 CDT 2015 Max Reitz <mreitz@redhat.com> block/throttle-groups: Make incref/decref public

Throttle groups are not necessarily referenced by BDSs alone; a later
patch will essentially allow BBs to reference them, too. Make the
ref/unref functions public so that reference can be properly accounted
for.

Their interface is slightly adjusted in that they return and take a
ThrottleState pointer, respectively, instead of a ThrottleGroup pointer.
Functionally, they are equivalent, but since ThrottleGroup is not meant
to be used outside of block/throttle-groups.c, ThrottleState is easier
to handle.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
/openbmc/qemu/block/
H A Dthrottle-groups.cdiff 973f2ddf7b48c27aa8642047796cca3bec0b48d8 Mon Oct 19 10:53:23 CDT 2015 Max Reitz <mreitz@redhat.com> block/throttle-groups: Make incref/decref public

Throttle groups are not necessarily referenced by BDSs alone; a later
patch will essentially allow BBs to reference them, too. Make the
ref/unref functions public so that reference can be properly accounted
for.

Their interface is slightly adjusted in that they return and take a
ThrottleState pointer, respectively, instead of a ThrottleGroup pointer.
Functionally, they are equivalent, but since ThrottleGroup is not meant
to be used outside of block/throttle-groups.c, ThrottleState is easier
to handle.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>