projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc8dfcb
)
[NET]: Prefetch dev->qdisc_lock in dev_queue_xmit()
author
Eric Dumazet
<dada1@cosmosbay.com>
Tue, 27 Sep 2005 22:22:58 +0000
(15:22 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 27 Sep 2005 22:22:58 +0000
(15:22 -0700)
We know the lock is going to be taken.
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
patch
|
blob
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index
37c8810
..
9066c87
100644
(file)
--- a/
net/core/dev.c
+++ b/
net/core/dev.c
@@
-1259,6
+1259,8
@@
int dev_queue_xmit(struct sk_buff *skb)
if (skb_checksum_help(skb, 0))
goto out_kfree_skb;
+ spin_lock_prefetch(&dev->queue_lock);
+
/* Disable soft irqs for various locks below. Also
* stops preemption for RCU.
*/