summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorMike Galbraith <efault@gmx.de>2010-03-03 04:46:50 +0000
committerDavid S. Miller <davem@davemloft.net>2010-03-04 00:53:51 -0800
commitc839d30a41dd92eb32d7fcfa2b4e99042fc64bf2 (patch)
treef439f53a8e7a77590d249b5bb0c584db171366da /include/net
parent8f37ada5b5f6bfb4d251a7f510f249cb855b77b3 (diff)
downloadop-kernel-dev-c839d30a41dd92eb32d7fcfa2b4e99042fc64bf2.zip
op-kernel-dev-c839d30a41dd92eb32d7fcfa2b4e99042fc64bf2.tar.gz
net: add scheduler sync hint to tcp_prequeue().
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>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/tcp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 56f0aec..75be5a2 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -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,
OpenPOWER on IntegriCloud