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>2015-02-13 22:21:05 (GMT)
commit7ad67c5de1f6090c8b4c9c90c58de48338ef757a (patch)
tree9fd529d7f4a236969cf94871eba81cac452840db /net
parent9e61840aac7cd3b6c76dd16f3d44e1c76f4738a4 (diff)
downloadlinux-fsl-qoriq-7ad67c5de1f6090c8b4c9c90c58de48338ef757a.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 c2dcee2..0e06543 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;
@@ -1534,7 +1535,7 @@ void ip_send_unicast_reply(struct net *net, struct sk_buff *skb, __be32 daddr,
ip_push_pending_frames(sk, &fl4);
}
out:
- put_cpu_var(unicast_sock);
+ put_cpu_light();
ip_rt_put(rt);
}