OSDN Git Service

UPSTREAM: 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)
committerAlistair Strachan <astrachan@google.com>
Wed, 16 Jan 2019 01:08:36 +0000 (17:08 -0800)
commitd8e26f878c3517d795bc4e847691b568947e9b42
tree8a8aface51d0baf5c71754f2f35059bc1d910252
parentf95e936b327d46040db3d9d786ac8a67a21ee1f9
UPSTREAM: 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>
(cherry picked from commit 2d5a1b31799efcd37a57fe4d2f492d8dc2a0a334)
Bug: 121166534
Test: Ran cuttlefish with android-4.4 + vsock adb tunnel
Signed-off-by: Cody Schuffelen <schuffelen@google.com>
Change-Id: Ic2fa852a2080a4df1cb3b823c02d65a354c15b34
drivers/vhost/vsock.c