OSDN Git Service

vsock: cancel packets when failing to connect
authorPeng Tao <bergwolf@gmail.com>
Wed, 15 Mar 2017 01:32:17 +0000 (09:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Dec 2017 13:23:38 +0000 (14:23 +0100)
commit98d20e5902667f9b44a75116041a630823f81e46
treeea8c7f4135d7e8c8e018860652ff5ed39e7d1683
parent482b3f92aea249b031ba0bc24df73f3c48f1f5c2
vsock: cancel packets when failing to connect

[ Upstream commit 380feae0def7e6a115124a3219c3ec9b654dca32 ]

Otherwise we'll leave the packets queued until releasing vsock device.
E.g., if guest is slow to start up, resulting ETIMEDOUT on connect, guest
will get the connect requests from failed host sockets.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/vmw_vsock/af_vsock.c