Re: [PATCH v2 4/4] vsock: cancel packets when failing to connect

2016-12-08 Thread Peng Tao
On Thu, Dec 8, 2016 at 5:24 PM, Stefan Hajnoczi wrote: > On Wed, Dec 07, 2016 at 11:14:12PM +0800, Peng Tao wrote: >> 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

Re: [PATCH v2 4/4] vsock: cancel packets when failing to connect

2016-12-08 Thread Stefan Hajnoczi
On Wed, Dec 07, 2016 at 11:14:12PM +0800, Peng Tao wrote: > 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

[PATCH v2 4/4] vsock: cancel packets when failing to connect

2016-12-07 Thread Peng Tao
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 Signed-off-by: Peng Tao --- include/linux/virtio_vsock.h