]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio: Use auto rcu_read macros
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 28 Oct 2019 16:11:09 +0000 (16:11 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 29 Oct 2019 22:56:45 +0000 (18:56 -0400)
commitb5f53d04a5a567ac70d33ec95628d35583eba600
tree7c90f01af096af4a5fe64d701343911df2cd7f3a
parent068ddfa970063730c5a61b06bae336d68de114e1
virtio: Use auto rcu_read macros

Use RCU_READ_LOCK_GUARD and WITH_RCU_READ_LOCK_GUARD
to replace the manual rcu_read_(un)lock calls.

I think the only change is virtio_load which was missing unlocks
in error paths; those end up being fatal errors so it's not
that important anyway.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20191028161109.60205-1-dgilbert@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio.c