OSDN Git Service

sock: Remove the global prot_inuse counter.
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Thu, 9 Nov 2017 08:03:15 +0000 (00:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 10:17:33 +0000 (19:17 +0900)
commit5290ada4a2e6a9dec00e849a49af8f7bf7462449
tree13d9566a1641bfb305ce9200203c1b4bef2bcb4d
parent492d070f2495d4b200124ed44a35ab3d8f74ac93
sock: Remove the global prot_inuse counter.

The per-cpu counter for init_net is prepared in core_initcall.
The patch 7d720c3e ("percpu: add __percpu sparse annotations to net")
and d6d9ca0fe ("net: this_cpu_xxx conversions") optimize the
routines. Then remove the old counter.

Cc: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Tonghao Zhang <zhangtonghao@didichuxing.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c