summary refs log tree commit diff stats
path: root/include/qemu/rcu.h
diff options
context:
space:
mode:
authorMaxim Levitsky <mlevitsk@redhat.com>2020-09-15 20:12:53 +0800
committerThomas Huth <thuth@redhat.com>2020-09-16 08:41:06 +0200
commitd816614ca4f5af89a2b6d50ac840d7b77973f2fc (patch)
treeca8fa5ba39803633e1237829e2490a6ccfa63701 /include/qemu/rcu.h
parent37d98abdc77cfbd158b453d22629e5c7d020c878 (diff)
downloadfocaccia-qemu-d816614ca4f5af89a2b6d50ac840d7b77973f2fc.tar.gz
focaccia-qemu-d816614ca4f5af89a2b6d50ac840d7b77973f2fc.zip
rcu: Implement drain_call_rcu
This will allow is to preserve the semantics of hmp_device_del,
that the device is deleted immediatly which was changed by previos
patch that delayed this to RCU callback

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Suggested-by: Stefan Hajnoczi <stefanha@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20200915121318.247-2-luoyonggang@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'include/qemu/rcu.h')
-rw-r--r--include/qemu/rcu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qemu/rcu.h b/include/qemu/rcu.h
index 570aa603eb..0e375ebe13 100644
--- a/include/qemu/rcu.h
+++ b/include/qemu/rcu.h
@@ -133,6 +133,7 @@ struct rcu_head {
 };
 
 extern void call_rcu1(struct rcu_head *head, RCUCBFunc *func);
+extern void drain_call_rcu(void);
 
 /* The operands of the minus operator must have the same type,
  * which must be the one that we specify in the cast.