diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-10-01 17:12:35 +0100 |
---|---|---|
committer | Gary Robertson <gary.robertson@linaro.org> | 2014-03-06 13:07:22 +0800 |
commit | 106bfd5813c5c8d311fd526001c9b960f3674336 (patch) | |
tree | 746c359cc43008d5ae630551191759fc99cde846 /net | |
parent | 7a9e6ab83b9a306562e547d4f429412f8cad8367 (diff) |
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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index 6ca5873d6175..2d69b1b81799 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c @@ -1508,7 +1508,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; @@ -1532,7 +1533,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); } |