Re: [Qemu-devel] [PATCH v3 0/5] Automatic RCU read unlock

2019-09-25 Thread Paolo Bonzini
On 25/09/19 17:28, Dr. David Alan Gilbert wrote: > * Paolo Bonzini (pbonz...@redhat.com) wrote: >> On 25/09/19 15:13, Dr. David Alan Gilbert wrote: >>> * Dr. David Alan Gilbert (git) (dgilb...@redhat.com) wrote: From: "Dr. David Alan Gilbert" This patch uses glib's g_auto mechanism

Re: [Qemu-devel] [PATCH v3 0/5] Automatic RCU read unlock

2019-09-25 Thread Daniel P . Berrangé
On Wed, Sep 25, 2019 at 04:28:58PM +0100, Dr. David Alan Gilbert wrote: > * Paolo Bonzini (pbonz...@redhat.com) wrote: > > On 25/09/19 15:13, Dr. David Alan Gilbert wrote: > > > * Dr. David Alan Gilbert (git) (dgilb...@redhat.com) wrote: > > >> From: "Dr. David Alan Gilbert" > > >> > > >> This pat

Re: [Qemu-devel] [PATCH v3 0/5] Automatic RCU read unlock

2019-09-25 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > On 25/09/19 15:13, Dr. David Alan Gilbert wrote: > > * Dr. David Alan Gilbert (git) (dgilb...@redhat.com) wrote: > >> From: "Dr. David Alan Gilbert" > >> > >> This patch uses glib's g_auto mechanism to automatically free > >> rcu_read_lock's at the en

Re: [Qemu-devel] [PATCH v3 0/5] Automatic RCU read unlock

2019-09-25 Thread Paolo Bonzini
On 25/09/19 15:13, Dr. David Alan Gilbert wrote: > * Dr. David Alan Gilbert (git) (dgilb...@redhat.com) wrote: >> From: "Dr. David Alan Gilbert" >> >> This patch uses glib's g_auto mechanism to automatically free >> rcu_read_lock's at the end of the block. Given that humans >> have a habit of for

Re: [Qemu-devel] [PATCH v3 0/5] Automatic RCU read unlock

2019-09-25 Thread Dr. David Alan Gilbert
* Dr. David Alan Gilbert (git) (dgilb...@redhat.com) wrote: > From: "Dr. David Alan Gilbert" > > This patch uses glib's g_auto mechanism to automatically free > rcu_read_lock's at the end of the block. Given that humans > have a habit of forgetting an error path somewhere it's > best to leave it

Re: [Qemu-devel] [PATCH v3 0/5] Automatic RCU read unlock

2019-09-25 Thread Dr. David Alan Gilbert
* Dr. David Alan Gilbert (git) (dgilb...@redhat.com) wrote: > From: "Dr. David Alan Gilbert" > > This patch uses glib's g_auto mechanism to automatically free > rcu_read_lock's at the end of the block. Given that humans > have a habit of forgetting an error path somewhere it's > best to leave it

[Qemu-devel] [PATCH v3 0/5] Automatic RCU read unlock

2019-09-13 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" This patch uses glib's g_auto mechanism to automatically free rcu_read_lock's at the end of the block. Given that humans have a habit of forgetting an error path somewhere it's best to leave it to the compiler. v3 Add block-head version of macro Rename Add d