diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-10-01 17:12:35 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-08-13 16:09:00 -0400 |
commit | 2b34c4ccb680d7a4c49b4ca7088d131ee19a75b4 (patch) | |
tree | 99fe917b8dd892d83a36f17c35dbc88a3a0c6123 | |
parent | 51bfda486c0b8155d55f8ac6c335549445913abc (diff) |
net: Use get_cpu_light() in ip_send_unicast_reply()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-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 3e98ed2bff55..253692b4eceb 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); } |