summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-10-01 16:12:35 (GMT)
committerScott Wood <scottwood@freescale.com>2014-04-10 00:20:03 (GMT)
commitfa1090b0d09f2f942da496cbbb0c65a3299803d9 (patch)
tree8b144e7075e63949fa8d0959d5db105d22909a33 /net
parent5149e361d98c6d2c602f5c040e244af5b6903f8d (diff)
downloadlinux-fsl-qoriq-fa1090b0d09f2f942da496cbbb0c65a3299803d9.tar.xz
net: Use get_cpu_light() in ip_send_unicast_reply()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/ip_output.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index 3982eab..e9fa68c 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -1505,7 +1505,8 @@ void ip_send_unicast_reply(struct net *net, struct sk_buff *skb, __be32 daddr,
if (IS_ERR(rt))
return;
- inet = &get_cpu_var(unicast_sock);
+ get_cpu_light();
+ inet = &__get_cpu_var(unicast_sock);
inet->tos = arg->tos;
sk = &inet->sk;
@@ -1529,7 +1530,7 @@ void ip_send_unicast_reply(struct net *net, struct sk_buff *skb, __be32 daddr,
ip_push_pending_frames(sk, &fl4);
}
- put_cpu_var(unicast_sock);
+ put_cpu_light();
ip_rt_put(rt);
}