diff options
Diffstat (limited to 'net/ipv4/tcp_memcontrol.c')
-rw-r--r-- | net/ipv4/tcp_memcontrol.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ipv4/tcp_memcontrol.c b/net/ipv4/tcp_memcontrol.c index c2a75c6957a1..2379c1b4efb2 100644 --- a/net/ipv4/tcp_memcontrol.c +++ b/net/ipv4/tcp_memcontrol.c | |||
@@ -47,6 +47,10 @@ void tcp_destroy_cgroup(struct mem_cgroup *memcg) | |||
47 | return; | 47 | return; |
48 | 48 | ||
49 | percpu_counter_destroy(&cg_proto->sockets_allocated); | 49 | percpu_counter_destroy(&cg_proto->sockets_allocated); |
50 | |||
51 | if (test_bit(MEMCG_SOCK_ACTIVATED, &cg_proto->flags)) | ||
52 | static_key_slow_dec(&memcg_socket_limit_enabled); | ||
53 | |||
50 | } | 54 | } |
51 | EXPORT_SYMBOL(tcp_destroy_cgroup); | 55 | EXPORT_SYMBOL(tcp_destroy_cgroup); |
52 | 56 | ||