On Fri, Sep 13, 2019 at 11:25:34AM +0100, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" <dgilb...@redhat.com> > > RCU_READ_LOCK_GUARD() takes the rcu_read_lock and then uses glib's > g_auto infrastructure (and thus whatever the compiler's hooks are) to > release it on all exits of the block. > > WITH_RCU_READ_LOCK_GUARD() is similar but is used as a wrapper for the > lock, i.e.: > > WITH_RCU_READ_LOCK_GUARD() { > stuff under lock > } > > Signed-off-by: Dr. David Alan Gilbert <dgilb...@redhat.com> > --- > docs/devel/rcu.txt | 16 ++++++++++++++++ > include/qemu/rcu.h | 25 +++++++++++++++++++++++++ > 2 files changed, 41 insertions(+)
Reviewed-by: Daniel P. Berrangé <berra...@redhat.com> Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|