Revert "net: simplify sock_poll_wait"
This reverts commit dd979b4d. This broke tcp_poll for SMC fallback: An AF_SMC socket establishes an internal TCP socket for the initial handshake with the remote peer. Whenever the SMC connection can not be established this TCP socket is used as a fallback. All socket operations on the SMC socket are then forwarded to the TCP socket. In case of poll, the file->private_data pointer references the SMC socket because the TCP socket has no file assigned. This causes tcp_poll to wait on the wrong socket. Signed-off-by:Karsten Graul <kgraul@linux.ibm.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- crypto/af_alg.c 1 addition, 1 deletioncrypto/af_alg.c
- include/net/sock.h 9 additions, 3 deletionsinclude/net/sock.h
- net/atm/common.c 1 addition, 1 deletionnet/atm/common.c
- net/caif/caif_socket.c 1 addition, 1 deletionnet/caif/caif_socket.c
- net/core/datagram.c 1 addition, 1 deletionnet/core/datagram.c
- net/dccp/proto.c 1 addition, 1 deletionnet/dccp/proto.c
- net/ipv4/tcp.c 1 addition, 1 deletionnet/ipv4/tcp.c
- net/iucv/af_iucv.c 1 addition, 1 deletionnet/iucv/af_iucv.c
- net/nfc/llcp_sock.c 1 addition, 1 deletionnet/nfc/llcp_sock.c
- net/rxrpc/af_rxrpc.c 1 addition, 1 deletionnet/rxrpc/af_rxrpc.c
- net/smc/af_smc.c 1 addition, 1 deletionnet/smc/af_smc.c
- net/tipc/socket.c 1 addition, 1 deletionnet/tipc/socket.c
- net/unix/af_unix.c 2 additions, 2 deletionsnet/unix/af_unix.c
Loading
Please register or sign in to comment