From 6eabf29622f23f12a5409e62aaadd406f6b62383 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Mon, 1 Oct 2012 17:12:35 +0100 Subject: net: Use get_cpu_light() in ip_send_unicast_reply() Signed-off-by: Thomas Gleixner 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); } -- cgit v0.10.2