summaryrefslogtreecommitdiff
path: root/drivers/sbus
diff options
context:
space:
mode:
authorSunil Muthuswamy <sunilmut@microsoft.com>2019-05-15 03:56:05 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-04 10:32:02 +0300
commitfbfe322db638d136af2d502d3b3069693a9bca10 (patch)
treec439d49bdf654bbb662b5bebb576669411b80460 /drivers/sbus
parent417084878e022072086d2de916347b93941bd829 (diff)
downloadlinux-fbfe322db638d136af2d502d3b3069693a9bca10.tar.xz
hv_sock: Add support for delayed close
commit a9eeb998c28d5506616426bd3a216bd5735a18b8 upstream. Currently, hvsock does not implement any delayed or background close logic. Whenever the hvsock socket is closed, a FIN is sent to the peer, and the last reference to the socket is dropped, which leads to a call to .destruct where the socket can hang indefinitely waiting for the peer to close it's side. The can cause the user application to hang in the close() call. This change implements proper STREAM(TCP) closing handshake mechanism by sending the FIN to the peer and the waiting for the peer's FIN to arrive for a given timeout. On timeout, it will try to terminate the connection (i.e. a RST). This is in-line with other socket providers such as virtio. This change does not address the hang in the vmbus_hvsock_device_unregister where it waits indefinitely for the host to rescind the channel. That should be taken up as a separate fix. Signed-off-by: Sunil Muthuswamy <sunilmut@microsoft.com> Reviewed-by: Dexuan Cui <decui@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/sbus')
0 files changed, 0 insertions, 0 deletions