net: SOCKWQ_ASYNC_WAITDATA optimizations
authorEric Dumazet <edumazet@google.com>
Mon, 25 Apr 2016 17:39:34 +0000 (10:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Apr 2016 03:08:40 +0000 (23:08 -0400)
commit4be735225f7cd040ca81c18740e7b672021bafeb
tree36276766d7de862ca9ade5b3d32303439c1d18ad
parent9317bb69824ec8d078b0b786b6971aedb0af3d4f
net: SOCKWQ_ASYNC_WAITDATA optimizations

SOCKWQ_ASYNC_WAITDATA is set/cleared in sk_wait_data()
and equivalent functions, so that sock_wake_async() can send
a SIGIO only when necessary.

Since these atomic operations are really not needed unless
socket expressed interest in FASYNC, we can omit them in most
cases.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h