migration: Replaced qemu_mutex_lock calls with QEMU_LOCK_GUARD
commit373969507a3dc7de2d291da7e1bd03acf46ec643
authorMahmoud Mandour <ma.mandourr@gmail.com>
Thu, 11 Mar 2021 03:15:35 +0000 (11 05:15 +0200)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 15 Mar 2021 20:01:55 +0000 (15 20:01 +0000)
treec1790bd280139b90936cb3ed945b705011b5b0e8
parenta8e2ab5db2181b68f371ee794e1a0fe7ca6f5e24
migration: Replaced qemu_mutex_lock calls with QEMU_LOCK_GUARD

Replaced various qemu_mutex_lock calls and their respective
qemu_mutex_unlock calls with QEMU_LOCK_GUARD macro. This simplifies
the code by eliminating the respective qemu_mutex_unlock calls.

Signed-off-by: Mahmoud Mandour <ma.mandourr@gmail.com>
Message-Id: <20210311031538.5325-7-ma.mandourr@gmail.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/migration.c
migration/ram.c