virtio_net: use RCU_READ_LOCK_GUARD
commit068ddfa970063730c5a61b06bae336d68de114e1
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 25 Oct 2019 10:34:03 +0000 (25 11:34 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 29 Oct 2019 22:56:45 +0000 (29 18:56 -0400)
treeccf6e1a4cd98b539cbd7caa53b5596d02d75a131
parent7a064bcc6699151311c2067eea6546da6498ebe7
virtio_net: use RCU_READ_LOCK_GUARD

Use RCU_READ_LOCK_GUARD rather than the manual rcu_read_(un)lock call.

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