]> git.proxmox.com Git - mirror_qemu.git/blobdiff - cpus.c
block/gluster: limit the transfer size to 512 MiB
[mirror_qemu.git] / cpus.c
diff --git a/cpus.c b/cpus.c
index b09b7027126183338463268f868b5dddf6a3e679..e83f72b48b4bf21e93b8588f953659e64eb20645 100644 (file)
--- a/cpus.c
+++ b/cpus.c
@@ -1333,6 +1333,7 @@ static void *qemu_dummy_cpu_thread_fn(void *arg)
         qemu_wait_io_event(cpu);
     } while (!cpu->unplug);
 
+    qemu_mutex_unlock_iothread();
     rcu_unregister_thread();
     return NULL;
 #endif
@@ -1778,7 +1779,7 @@ static void qemu_cpu_kick_thread(CPUState *cpu)
     }
     cpu->thread_kicked = true;
     err = pthread_kill(cpu->thread->thread, SIG_IPI);
-    if (err) {
+    if (err && err != ESRCH) {
         fprintf(stderr, "qemu:%s: %s", __func__, strerror(err));
         exit(1);
     }