mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 17:41:44 +00:00
[NET]: Prefetch dev->qdisc_lock in dev_queue_xmit()
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>
This commit is contained in:
parent
bc8dfcb939
commit
2d7ceece08
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user