]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitab77452f39a87f07b3b6332d81b2732bdce93cbb
tree049875c09693bc70b23dae2ce0dcb99127f74eec
parent17e8877ee07218d4b6ce4fba44ba521de0e298ee
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