From: Cong Wang <[email protected]>
Date: Fri, 11 Nov 2016 10:20:50 -0800
> Similar to commit 14135f30e33c ("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 <[email protected]>
> Cc: Peter Zijlstra <[email protected]>
> Signed-off-by: Cong Wang <[email protected]>
Applied, thanks.