diff options
author | Parthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com> | 2016-11-01 14:02:34 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-01 16:53:23 +0100 |
commit | 7cf87fa27873a954f2d665dfc61fc22227d96ad8 (patch) | |
tree | 74d947199ea10ad77ec946f1d5e69ca5702f1fb3 /net/tipc/socket.h | |
parent | Merge branch 'nfp-cleanups-and-RX-path-rewrite' (diff) | |
download | linux-7cf87fa27873a954f2d665dfc61fc22227d96ad8.tar.xz linux-7cf87fa27873a954f2d665dfc61fc22227d96ad8.zip |
tipc: return early for non-blocking sockets at link congestion
Until now, in stream/mcast send() we pass the message to the link
layer even when the link is congested and add the socket to the
link's wakeup queue. This is unnecessary for non-blocking sockets.
If a socket is set to non-blocking and sends multicast with zero
back off time while receiving EAGAIN, we exhaust the memory.
In this commit, we return immediately at stream/mcast send() for
non-blocking sockets.
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/socket.h')
0 files changed, 0 insertions, 0 deletions