| Subject: net: Use get_cpu_light() in ip_send_unicast_reply() |
| From: Thomas Gleixner <tglx@linutronix.de> |
| Date: Mon, 01 Oct 2012 17:12:35 +0100 |
| |
| Signed-off-by: Thomas Gleixner <tglx@linutronix.de> |
| --- |
| net/ipv4/ip_output.c | 5 +++-- |
| 1 file changed, 3 insertions(+), 2 deletions(-) |
| |
| --- a/net/ipv4/ip_output.c |
| +++ b/net/ipv4/ip_output.c |
| @@ -1508,7 +1508,8 @@ void ip_send_unicast_reply(struct net *n |
| 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 *n |
| ip_push_pending_frames(sk, &fl4); |
| } |
| |
| - put_cpu_var(unicast_sock); |
| + put_cpu_light(); |
| |
| ip_rt_put(rt); |
| } |