net: fix sleeping for sk_wait_event()
Similar to commit 14135f30 ("inet: fix sleeping inside inet_wait_for_connect()"), sk_wait_event() needs to fix too, because release_sock() is blocking, it changes the process state back to running after sleep, which breaks the previous prepare_to_wait(). Switch to the new wait API. Cc: Eric Dumazet <eric.dumazet@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by:Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- crypto/algif_aead.c 4 additions, 5 deletionscrypto/algif_aead.c
- crypto/algif_skcipher.c 9 additions, 9 deletionscrypto/algif_skcipher.c
- include/net/sock.h 5 additions, 3 deletionsinclude/net/sock.h
- net/core/sock.c 4 additions, 4 deletionsnet/core/sock.c
- net/core/stream.c 14 additions, 14 deletionsnet/core/stream.c
- net/decnet/af_decnet.c 8 additions, 8 deletionsnet/decnet/af_decnet.c
- net/llc/af_llc.c 12 additions, 12 deletionsnet/llc/af_llc.c
- net/phonet/pep.c 4 additions, 5 deletionsnet/phonet/pep.c
- net/tipc/socket.c 12 additions, 12 deletionsnet/tipc/socket.c
- net/vmw_vsock/virtio_transport_common.c 5 additions, 5 deletionsnet/vmw_vsock/virtio_transport_common.c
Loading
Please register or sign in to comment