]> git.proxmox.com Git - mirror_qemu.git/commit - block/block-backend.c
block: introduce bdrv_activate
authorEmanuele Giuseppe Esposito <eesposit@redhat.com>
Wed, 9 Feb 2022 10:54:50 +0000 (05:54 -0500)
committerKevin Wolf <kwolf@redhat.com>
Fri, 4 Mar 2022 17:14:40 +0000 (18:14 +0100)
commita94750d9567359fb296161cd80afb015ef18193f
tree5b4bdd49bf704debe5b29a94aa1b0367de9ef47d
parentdae84929e415fe46751a35067fd5e45c6ba459b4
block: introduce bdrv_activate

This function is currently just a wrapper for bdrv_invalidate_cache(),
but in future will contain the code of bdrv_co_invalidate_cache() that
has to always be protected by BQL, and leave the rest in the I/O
coroutine.

Replace all bdrv_invalidate_cache() invokations with bdrv_activate().

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220209105452.1694545-4-eesposit@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block/block-backend.c
block/export/export.c
block/parallels.c
include/block/block.h
tests/unit/test-block-iothread.c