summary refs log tree commit diff stats
path: root/util/async.c
diff options
context:
space:
mode:
authorEmanuele Giuseppe Esposito <eesposit@redhat.com>2022-02-09 05:54:52 -0500
committerKevin Wolf <kwolf@redhat.com>2022-03-04 18:14:40 +0100
commit11d0c9b37e94959662f6bcd640aa33137e11dcac (patch)
tree468e420a657a0cb29b7269345fa4c006d2cfa01c /util/async.c
parent3b71719462b869463e34394e56c74644672c69e5 (diff)
downloadfocaccia-qemu-11d0c9b37e94959662f6bcd640aa33137e11dcac.tar.gz
focaccia-qemu-11d0c9b37e94959662f6bcd640aa33137e11dcac.zip
block: move BQL logic of bdrv_co_invalidate_cache in bdrv_activate
Split bdrv_co_invalidate cache in two: the Global State (under BQL)
code that takes care of permissions and running GS callbacks,
and leave only the I/O code (->bdrv_co_invalidate_cache) running in
the I/O coroutine.

The only side effect is that bdrv_co_invalidate_cache is not
recursive anymore, and so is every direct call to
bdrv_invalidate_cache().

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Message-Id: <20220209105452.1694545-6-eesposit@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'util/async.c')
0 files changed, 0 insertions, 0 deletions