diff options
author | Maxim Levitsky <mlevitsk@redhat.com> | 2020-09-15 20:12:53 +0800 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2020-09-16 08:41:06 +0200 |
commit | d816614ca4f5af89a2b6d50ac840d7b77973f2fc (patch) | |
tree | ca8fa5ba39803633e1237829e2490a6ccfa63701 /include/qemu | |
parent | 37d98abdc77cfbd158b453d22629e5c7d020c878 (diff) | |
download | qemu-d816614ca4f5af89a2b6d50ac840d7b77973f2fc.zip qemu-d816614ca4f5af89a2b6d50ac840d7b77973f2fc.tar.gz qemu-d816614ca4f5af89a2b6d50ac840d7b77973f2fc.tar.bz2 |
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')
-rw-r--r-- | include/qemu/rcu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qemu/rcu.h b/include/qemu/rcu.h index 570aa60..0e375eb 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. |