net: sk_sleep() helper
commitaa395145165cb06a0d0885221bbe0ce4a564391d
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 20 Apr 2010 13:03:51 +0000 (20 13:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Apr 2010 23:37:13 +0000 (20 16:37 -0700)
tree118b0403621f10db8dc3dbf12079f9af5b19e05d
parentab9304717f7624c41927f442e6b6d418b2d8b3e4
net: sk_sleep() helper

Define a new function to return the waitqueue of a "struct sock".

static inline wait_queue_head_t *sk_sleep(struct sock *sk)
{
return sk->sk_sleep;
}

Change all read occurrences of sk_sleep by a call to this function.

Needed for a future RCU conversion. sk_sleep wont be a field directly
available.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
46 files changed:
drivers/atm/atmtcp.c
drivers/net/macvtap.c
drivers/net/tun.c
drivers/scsi/iscsi_tcp.c
include/net/sock.h
include/net/tcp.h
net/atm/common.c
net/atm/signaling.c
net/atm/svc.c
net/ax25/af_ax25.c
net/bluetooth/af_bluetooth.c
net/bluetooth/bnep/core.c
net/bluetooth/bnep/netdev.c
net/bluetooth/cmtp/cmtp.h
net/bluetooth/cmtp/core.c
net/bluetooth/hidp/core.c
net/bluetooth/hidp/hidp.h
net/bluetooth/l2cap.c
net/bluetooth/rfcomm/sock.c
net/bluetooth/sco.c
net/caif/caif_socket.c
net/core/datagram.c
net/core/sock.c
net/core/stream.c
net/dccp/output.c
net/dccp/proto.c
net/decnet/af_decnet.c
net/ipv4/af_inet.c
net/ipv4/inet_connection_sock.c
net/ipv4/tcp.c
net/irda/af_irda.c
net/iucv/af_iucv.c
net/llc/af_llc.c
net/netfilter/ipvs/ip_vs_sync.c
net/netrom/af_netrom.c
net/rds/af_rds.c
net/rds/rds.h
net/rds/recv.c
net/rds/send.c
net/rose/af_rose.c
net/rxrpc/af_rxrpc.c
net/sctp/socket.c
net/sunrpc/svcsock.c
net/tipc/socket.c
net/unix/af_unix.c
net/x25/af_x25.c