[Qemu-devel] [PATCH 09/11] qed: protect table cache with CoMutex

2017-06-29 Thread Paolo Bonzini
This makes the driver thread-safe. The CoMutex is dropped temporarily while accessing the data clusters or the backing file. Signed-off-by: Paolo Bonzini --- RFC->v2: add bdrv_qed_invalidate_cache change; invalidate_cache can run in a coroutine when called by block migra

[Qemu-devel] [PATCH 09/11] qed: protect table cache with CoMutex

2017-05-31 Thread Paolo Bonzini
This makes the driver thread-safe. The CoMutex is dropped temporarily while accessing the data clusters or the backing file. Signed-off-by: Paolo Bonzini --- block/qed-cluster.c | 4 +- block/qed-l2-cache.c | 6 +++ block/qed-table.c| 24 +++--- block/qed.c | 131