Re: [PATCH] colo: fix return without releasing RCU

2019-12-14 Thread Zhang, Chen
On 12/13/2019 11:03 PM, Dr. David Alan Gilbert wrote: * Paolo Bonzini (pbonz...@redhat.com) wrote: Use WITH_RCU_READ_LOCK_GUARD to avoid exiting colo_init_ram_cache without releasing RCU. Cc: Dr. David Alan Gilbert Signed-off-by: Paolo Bonzini Reviewed-by: Dr. David Alan Gilbert Reviewe

Re: [PATCH] colo: fix return without releasing RCU

2019-12-13 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > Use WITH_RCU_READ_LOCK_GUARD to avoid exiting colo_init_ram_cache > without releasing RCU. > > Cc: Dr. David Alan Gilbert > Signed-off-by: Paolo Bonzini Reviewed-by: Dr. David Alan Gilbert > --- > migration/ram.c | 33 +--

[PATCH] colo: fix return without releasing RCU

2019-12-13 Thread Paolo Bonzini
Use WITH_RCU_READ_LOCK_GUARD to avoid exiting colo_init_ram_cache without releasing RCU. Cc: Dr. David Alan Gilbert Signed-off-by: Paolo Bonzini --- migration/ram.c | 33 + 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/migration/ram.c b/migratio