From d816614ca4f5af89a2b6d50ac840d7b77973f2fc Mon Sep 17 00:00:00 2001 From: Maxim Levitsky Date: Tue, 15 Sep 2020 20:12:53 +0800 Subject: 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 Suggested-by: Stefan Hajnoczi Reviewed-by: Stefan Hajnoczi Message-Id: <20200915121318.247-2-luoyonggang@gmail.com> Signed-off-by: Thomas Huth --- include/qemu/rcu.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/qemu/rcu.h') 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. -- cgit 1.4.1