vhost/vsock: switch to a mutex for vhost_vsock_hash
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 5 Nov 2018 17:33:22 +0000 (17:33 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 19 Dec 2018 23:23:49 +0000 (18:23 -0500)
commit6db3d8dc5d73b269987fae60745bb20eae97af61
tree049875c09693bc70b23dae2ce0dcb99127f74eec
parent1f23816b8eb8fdc39990abe166c10a18c16f6b21
vhost/vsock: switch to a mutex for vhost_vsock_hash

Now that there are no more data path users of vhost_vsock_lock, it can
be turned into a mutex.  It's only used by .release() and in the
.ioctl() path.

Depends-on: <20181105103547.22018-1-stefanha@redhat.com>
Suggested-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vhost/vsock.c