From: Eric Dumazet Date: Tue, 27 Sep 2005 22:22:58 +0000 (-0700) Subject: [NET]: Prefetch dev->qdisc_lock in dev_queue_xmit() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2d7ceece08ad940d0ceac98ab1b5a3b82dfc2a0a;p=openwrt%2Fstaging%2Fblogic.git [NET]: Prefetch dev->qdisc_lock in dev_queue_xmit() We know the lock is going to be taken. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/core/dev.c b/net/core/dev.c index 37c881070963..9066c874e273 100644 --- 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. */