diff options
author | Emanuele Giuseppe Esposito | 2022-02-09 11:54:50 +0100 |
---|---|---|
committer | Kevin Wolf | 2022-03-04 18:14:40 +0100 |
commit | a94750d9567359fb296161cd80afb015ef18193f (patch) | |
tree | 5b4bdd49bf704debe5b29a94aa1b0367de9ef47d /tests | |
parent | crypto: distinguish between main loop and I/O in block_crypto_amend_options_g... (diff) | |
download | qemu-a94750d9567359fb296161cd80afb015ef18193f.tar.gz qemu-a94750d9567359fb296161cd80afb015ef18193f.tar.xz qemu-a94750d9567359fb296161cd80afb015ef18193f.zip |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/test-block-iothread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test-block-iothread.c b/tests/unit/test-block-iothread.c index aea660aeed..378a7b7869 100644 --- a/tests/unit/test-block-iothread.c +++ b/tests/unit/test-block-iothread.c @@ -282,7 +282,7 @@ static void test_sync_op_check(BdrvChild *c) static void test_sync_op_invalidate_cache(BdrvChild *c) { /* Early success: Image is not inactive */ - bdrv_invalidate_cache(c->bs, NULL); + bdrv_activate(c->bs, NULL); } |