diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-10-01 17:12:35 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-01-16 18:13:54 -0500 |
commit | 5180fd09a18b65c3766dd4209820cbafbe91358a (patch) | |
tree | 30d9dd9f484fdda202f80a54059ea1c4f70b2e5b | |
parent | 39ad23e82d845e67abae736d72b00e6a7ec0d995 (diff) | |
download | linux-rt-5180fd09a18b65c3766dd4209820cbafbe91358a.tar.gz |
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 22fa05e041ea..0baf2220a250 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; @@ -1537,7 +1538,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); } |