]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
net: add scheduler sync hint to tcp_prequeue().
authorMike Galbraith <efault@gmx.de>
Wed, 3 Mar 2010 04:46:50 +0000 (04:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Mar 2010 08:53:51 +0000 (00:53 -0800)
Decreases the odds wakee will suffer from frequent cache misses.

Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h

index 56f0aec40ed63bf1a61c324cc497d9cf4ed9e461..75be5a28815d5d2759976a003a2f9f8f0ac9a1c9 100644 (file)
@@ -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,