diff options
author | Eric Dumazet <edumazet@google.com> | 2017-10-11 05:12:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-11 06:24:29 +0300 |
commit | 75cb070960ade40fba5de32138390f3c85c90941 (patch) | |
tree | 0a2ff2fbc1f4ba7381f5ea88b716d732c66e6f63 /net/ipv4/inet_connection_sock.c | |
parent | befc7a3324b45b7478b29861f2a77f8b2bc17922 (diff) | |
download | linux-75cb070960ade40fba5de32138390f3c85c90941.tar.xz |
Revert "net: defer call to cgroup_sk_alloc()"
This reverts commit fbb1fb4ad415cb31ce944f65a5ca700aaf73a227.
This was not the proper fix, lets cleanly revert it, so that
following patch can be carried to stable versions.
sock_cgroup_ptr() callers do not expect a NULL return value.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/inet_connection_sock.c')
-rw-r--r-- | net/ipv4/inet_connection_sock.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c index d32c74507314..67aec7a10686 100644 --- a/net/ipv4/inet_connection_sock.c +++ b/net/ipv4/inet_connection_sock.c @@ -26,8 +26,6 @@ #include <net/tcp.h> #include <net/sock_reuseport.h> #include <net/addrconf.h> -#include <net/cls_cgroup.h> -#include <net/netprio_cgroup.h> #ifdef INET_CSK_DEBUG const char inet_csk_timer_bug_msg[] = "inet_csk BUG: unknown timer value\n"; @@ -478,9 +476,6 @@ struct sock *inet_csk_accept(struct sock *sk, int flags, int *err, bool kern) spin_unlock_bh(&queue->fastopenq.lock); } mem_cgroup_sk_alloc(newsk); - cgroup_sk_alloc(&newsk->sk_cgrp_data); - sock_update_classid(&newsk->sk_cgrp_data); - sock_update_netprioidx(&newsk->sk_cgrp_data); out: release_sock(sk); if (req) |