]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix sleeping for sk_wait_event()
authorWANG Cong <xiyou.wangcong@gmail.com>
Fri, 11 Nov 2016 18:20:50 +0000 (10:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Nov 2016 18:17:21 +0000 (13:17 -0500)
commit1708e38316613453abe463c842898ed8a3894167
treea28c86da1c3ba7fef0f3fa82a5c7fc5bbb6fe2bf
parent793ae65e1e9a8b8300b95c2d3b20c8cab08038e2
net: fix sleeping for sk_wait_event()

Similar to commit 7d72068941d0 ("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>
crypto/algif_aead.c
crypto/algif_skcipher.c
include/net/sock.h
net/core/sock.c
net/core/stream.c
net/decnet/af_decnet.c
net/llc/af_llc.c
net/phonet/pep.c
net/tipc/socket.c
net/vmw_vsock/virtio_transport_common.c