summaryrefslogtreecommitdiffstats
path: root/net/tipc/bearer.c
diff options
context:
space:
mode:
authorParthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com>2016-11-01 14:02:35 +0100
committerDavid S. Miller <davem@davemloft.net>2016-11-01 16:53:23 +0100
commit4891d8fe16343660b4c1ddbcca4792300b5fd4f4 (patch)
treef3ad15f6e2f7ea777faae2667cb5643f3bc5670c /net/tipc/bearer.c
parenttipc: return early for non-blocking sockets at link congestion (diff)
downloadlinux-4891d8fe16343660b4c1ddbcca4792300b5fd4f4.tar.xz
linux-4891d8fe16343660b4c1ddbcca4792300b5fd4f4.zip
tipc: wakeup sleeping users at disconnect
Until now, in filter_connect() when we terminate a connection due to an error message from peer, we set the socket state to DISCONNECTING. The socket is notified about this broken connection using EPIPE when a user tries to send a message. However if a socket was waiting on a poll() while the connection is being terminated, we fail to wakeup that socket. In this commit, we wakeup sleeping sockets at connection termination. Acked-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: Parthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/bearer.c')
0 files changed, 0 insertions, 0 deletions