Re: [Qemu-devel] [PATCH v2 7/8] migration: hold the lock only if it is really needed

2018-07-22 Thread Peter Xu
On Thu, Jul 19, 2018 at 08:15:19PM +0800, guangrong.x...@gmail.com wrote: > From: Xiao Guangrong > > Try to hold src_page_req_mutex only if the queue is not > empty > > Reviewed-by: Dr. David Alan Gilbert > Signed-off-by: Xiao Guangrong Reviewed-by: Peter Xu -- Peter Xu

[Qemu-devel] [PATCH v2 7/8] migration: hold the lock only if it is really needed

2018-07-19 Thread guangrong . xiao
From: Xiao Guangrong Try to hold src_page_req_mutex only if the queue is not empty Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Xiao Guangrong --- include/qemu/queue.h | 1 + migration/ram.c | 4 2 files changed, 5 insertions(+) diff --git a/include/qemu/queue.h b/include/qem