vsock: cancel packets when failing to connect
authorPeng Tao <bergwolf@gmail.com>
Wed, 15 Mar 2017 01:32:17 +0000 (09:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2017 21:41:47 +0000 (14:41 -0700)
commit380feae0def7e6a115124a3219c3ec9b654dca32
tree033d132eaa2822a9a133e571c65d4c5bfd033d1b
parent073b4f2c50fe67c7c66a059a4d6db52bb1465490
vsock: cancel packets when failing to connect

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>
net/vmw_vsock/af_vsock.c