Skip to content

Commit 90e9517

Browse files
Ursula Braundavem330
authored andcommitted
net/smc: always call the POLL_IN part of sk_wake_async
Wake up reading file descriptors for a closing socket as well, otherwise some socket applications may stall. Signed-off-by: Ursula Braun <[email protected]> Reviewed-by: Thomas Richter <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 90cacb2 commit 90e9517

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

net/smc/smc_rx.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@ static void smc_rx_data_ready(struct sock *sk)
3636
if (skwq_has_sleeper(wq))
3737
wake_up_interruptible_sync_poll(&wq->wait, POLLIN | POLLPRI |
3838
POLLRDNORM | POLLRDBAND);
39+
sk_wake_async(sk, SOCK_WAKE_WAITD, POLL_IN);
3940
if ((sk->sk_shutdown == SHUTDOWN_MASK) ||
4041
(sk->sk_state == SMC_CLOSED))
4142
sk_wake_async(sk, SOCK_WAKE_WAITD, POLL_HUP);
42-
else
43-
sk_wake_async(sk, SOCK_WAKE_WAITD, POLL_IN);
4443
rcu_read_unlock();
4544
}
4645

0 commit comments

Comments
 (0)