aboutsummaryrefslogtreecommitdiff
path: root/net/core/sock.c
diff options
context:
space:
mode:
authorTony Lindgren2012-02-20 10:11:08 -0800
committerTony Lindgren2012-02-20 10:11:08 -0800
commit856c5403462419eff9a7891efeee7bddc2a08af6 (patch)
tree2f4bb681e10ec1f895600fa0a4b0b177dadf6fb4 /net/core/sock.c
parentb0ee4e394009f02a1d1b166091a19e8b842b4ea4 (diff)
parentd517110243130965e2803cc2373d434bdaf6dafb (diff)
Merge branch 'fixes-mmc' into fixes
Diffstat (limited to 'net/core/sock.c')
-rw-r--r--net/core/sock.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index 3e81fd2e3c75..02f8dfe320b7 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -1171,13 +1171,10 @@ EXPORT_SYMBOL(sock_update_classid);
void sock_update_netprioidx(struct sock *sk)
{
- struct cgroup_netprio_state *state;
if (in_interrupt())
return;
- rcu_read_lock();
- state = task_netprio_state(current);
- sk->sk_cgrp_prioidx = state ? state->prioidx : 0;
- rcu_read_unlock();
+
+ sk->sk_cgrp_prioidx = task_netprioidx(current);
}
EXPORT_SYMBOL_GPL(sock_update_netprioidx);
#endif