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>
Showing
- block.c 6 additions, 1 deletionblock.c
- block/block-backend.c 1 addition, 1 deletionblock/block-backend.c
- block/export/export.c 1 addition, 1 deletionblock/export/export.c
- block/parallels.c 1 addition, 1 deletionblock/parallels.c
- include/block/block.h 1 addition, 0 deletionsinclude/block/block.h
- tests/unit/test-block-iothread.c 1 addition, 1 deletiontests/unit/test-block-iothread.c
Loading
Please register or sign in to comment