summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMaxim Levitsky2020-09-15 14:12:53 +0200
committerThomas Huth2020-09-16 08:41:06 +0200
commitd816614ca4f5af89a2b6d50ac840d7b77973f2fc (patch)
treeca8fa5ba39803633e1237829e2490a6ccfa63701 /include
parentqga/commands-win32: Fix problem with redundant protype declaration (diff)
downloadqemu-d816614ca4f5af89a2b6d50ac840d7b77973f2fc.tar.gz
qemu-d816614ca4f5af89a2b6d50ac840d7b77973f2fc.tar.xz
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')
-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.