diff options
author | Eric Dumazet <edumazet@google.com> | 2021-11-15 09:11:50 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-16 13:20:45 +0000 |
commit | b3cb764aa1d753cf6a58858f9e2097ba71e8100b (patch) | |
tree | 7f2d751f3ec898f8cfb48df852e8beafdb6000a6 /include/net/sock.h | |
parent | 4199bae10c49e24bc2c5d8c06a68820d56640000 (diff) | |
download | linux-b3cb764aa1d753cf6a58858f9e2097ba71e8100b.tar.gz linux-b3cb764aa1d753cf6a58858f9e2097ba71e8100b.tar.bz2 linux-b3cb764aa1d753cf6a58858f9e2097ba71e8100b.zip |
net: drop nopreempt requirement on sock_prot_inuse_add()
This is distracting really, let's make this simpler,
because many callers had to take care of this
by themselves, even if on x86 this adds more
code than really needed.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 5589312531df..f09c0c4736c4 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -1434,11 +1434,11 @@ struct prot_inuse { int all; int val[PROTO_INUSE_NR]; }; -/* Called with local bh disabled */ + static inline void sock_prot_inuse_add(const struct net *net, const struct proto *prot, int val) { - __this_cpu_add(net->core.prot_inuse->val[prot->inuse_idx], val); + this_cpu_add(net->core.prot_inuse->val[prot->inuse_idx], val); } static inline void sock_inuse_add(const struct net *net, int val) |