]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/qed-cluster.c
parallels: wrong call to bdrv_truncate
[mirror_qemu.git] / block / qed-cluster.c
index f64b2af8f7ef7127956359cff9bb7486f1dea344..8f5da74c4d6e3069dc4ed610e756457b1ec8ecb1 100644 (file)
@@ -12,6 +12,7 @@
  *
  */
 
+#include "qemu/osdep.h"
 #include "qed.h"
 
 /**
@@ -82,6 +83,7 @@ static void qed_find_cluster_cb(void *opaque, int ret)
     unsigned int index;
     unsigned int n;
 
+    qed_acquire(s);
     if (ret) {
         goto out;
     }
@@ -108,6 +110,7 @@ static void qed_find_cluster_cb(void *opaque, int ret)
 
 out:
     find_cluster_cb->cb(find_cluster_cb->opaque, ret, offset, len);
+    qed_release(s);
     g_free(find_cluster_cb);
 }