vsock: lookup and setup guest_cid inside vhost_vsock_lock
authorGao feng <omarapazanadi@gmail.com>
Wed, 14 Dec 2016 11:24:36 +0000 (19:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Dec 2018 08:20:29 +0000 (09:20 +0100)
commit2d5a1b31799efcd37a57fe4d2f492d8dc2a0a334
treedc246df622aa8f30967250740ddbf297d008544e
parentadcc5726f1402e7ea39bebd08688efcc09ba4d26
vsock: lookup and setup guest_cid inside vhost_vsock_lock

[ Upstream commit 6c083c2b8a0a110cad936bc0a2c089f0d8115175 ]

Multi vsocks may setup the same cid at the same time.

Signed-off-by: Gao feng <omarapazanadi@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/vhost/vsock.c