Skip to content

Commit

Permalink
net: add scheduler sync hint to tcp_prequeue().
Browse files Browse the repository at this point in the history
Decreases the odds wakee will suffer from frequent cache misses.

Signed-off-by: Mike Galbraith <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Mike Galbraith authored and davem330 committed Mar 4, 2010
1 parent 8f37ada commit c839d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/tcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ static inline int tcp_prequeue(struct sock *sk, struct sk_buff *skb)

tp->ucopy.memory = 0;
} else if (skb_queue_len(&tp->ucopy.prequeue) == 1) {
wake_up_interruptible_poll(sk->sk_sleep,
wake_up_interruptible_sync_poll(sk->sk_sleep,
POLLIN | POLLRDNORM | POLLRDBAND);
if (!inet_csk_ack_scheduled(sk))
inet_csk_reset_xmit_timer(sk, ICSK_TIME_DACK,
Expand Down

0 comments on commit c839d30

Please sign in to comment.