aboutsummaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2016-04-25 10:39:32 -0700
committerDavid S. Miller <davem@davemloft.net>2016-04-27 23:08:40 -0400
commit9317bb69824ec8d078b0b786b6971aedb0af3d4f (patch)
tree74386478ca6ff2a989a68db8c8691933e4248f6a /net/ipv4/tcp_output.c
parent210732d16d20f0c18fc5e5dcdf726c8b02b81957 (diff)
downloadlinux-9317bb69824ec8d078b0b786b6971aedb0af3d4f.tar.gz
linux-9317bb69824ec8d078b0b786b6971aedb0af3d4f.tar.bz2
linux-9317bb69824ec8d078b0b786b6971aedb0af3d4f.zip
net: SOCKWQ_ASYNC_NOSPACE optimizations
SOCKWQ_ASYNC_NOSPACE is tested in sock_wake_async() so that a SIGIO signal is sent when needed. tcp_sendmsg() clears the bit. tcp_poll() sets the bit when stream is not writeable. We can avoid two atomic operations by first checking if socket is actually interested in the FASYNC business (most sockets in real applications do not use AIO, but select()/poll()/epoll()) This also removes one cache line miss to access sk->sk_wq->flags in tcp_sendmsg() Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions