]> git.baikalelectronics.ru Git - kernel.git/commit
net: core: protect rate estimator statistics pointer with lock
authorVlad Buslov <vladbu@mellanox.com>
Fri, 10 Aug 2018 17:51:54 +0000 (20:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Aug 2018 19:37:10 +0000 (12:37 -0700)
commitc1b5a004422048440263b23dcd60b3ae95cd3e86
treef1722ebb58f4b1d6f03b69d98120087a2decbbca
parent51599e2b66186fd159a8726e6f680a0c81ac415d
net: core: protect rate estimator statistics pointer with lock

Extend gen_new_estimator() to also take stats_lock when re-assigning rate
estimator statistics pointer. (to be used by unlocked actions)

Rename 'stats_lock' to 'lock' and change argument description to explain
that it is now also used for control path.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/gen_stats.h
net/core/gen_estimator.c