]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: rename SOCK_ASYNC_NOSPACE and SOCK_ASYNC_WAITDATA
authorEric Dumazet <edumazet@google.com>
Mon, 30 Nov 2015 04:03:10 +0000 (20:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Dec 2015 20:45:05 +0000 (15:45 -0500)
commit9cd3e072b0be17446e37d7414eac8a3499e0601e
tree83c6aac4a5164b4854a5d5d5deba1a513eee7157
parent5738a09d58d5ad2871f1f9a42bf6a3aa9ece5b3c
net: rename SOCK_ASYNC_NOSPACE and SOCK_ASYNC_WAITDATA

This patch is a cleanup to make following patch easier to
review.

Goal is to move SOCK_ASYNC_NOSPACE and SOCK_ASYNC_WAITDATA
from (struct socket)->flags to a (struct socket_wq)->flags
to benefit from RCU protection in sock_wake_async()

To ease backports, we rename both constants.

Two new helpers, sk_set_bit(int nr, struct sock *sk)
and sk_clear_bit(int net, struct sock *sk) are added so that
following patch can change their implementation.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 files changed:
crypto/algif_aead.c
crypto/algif_skcipher.c
drivers/net/macvtap.c
drivers/net/tun.c
fs/dlm/lowcomms.c
include/linux/net.h
include/net/sock.h
net/bluetooth/af_bluetooth.c
net/caif/caif_socket.c
net/core/datagram.c
net/core/sock.c
net/core/stream.c
net/dccp/proto.c
net/decnet/af_decnet.c
net/ipv4/tcp.c
net/iucv/af_iucv.c
net/nfc/llcp_sock.c
net/rxrpc/ar-output.c
net/sctp/socket.c
net/socket.c
net/sunrpc/xprtsock.c
net/unix/af_unix.c