]> git.proxmox.com Git - mirror_qemu.git/commit - block/qed.h
qed: protect table cache with CoMutex
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Jun 2017 13:27:47 +0000 (15:27 +0200)
committerFam Zheng <famz@redhat.com>
Mon, 17 Jul 2017 03:34:11 +0000 (11:34 +0800)
commit1f01e50b8330c24714ddca5841fdbb703076b121
treeca4573cd50c640d12842de5f0ba8d8814318d67a
parent61c7887e0f3dcfa9c4ccdfe43374243a4a5c0e8d
qed: protect table cache with CoMutex

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 <pbonzini@redhat.com>
Message-Id: <20170629132749.997-10-pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
block/qed-cluster.c
block/qed-l2-cache.c
block/qed-table.c
block/qed.c
block/qed.h