]> git.baikalelectronics.ru Git - kernel.git/commit
drop_monitor: Rename and document scope of mutex
authorIdo Schimmel <idosch@mellanox.com>
Tue, 6 Aug 2019 13:19:52 +0000 (16:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Aug 2019 19:37:56 +0000 (12:37 -0700)
commit4bf86ac853dba83f5d77c92a375228af6f10896d
treeb28f66c37244f9557c70da8dff351c94f6b75512
parentc1a4e3887e5738c6dd7b86a310264f78c826000a
drop_monitor: Rename and document scope of mutex

The 'trace_state_mutex' does not only protect the global 'trace_state'
variable, but also the global 'hw_stats_list'.

Subsequent patches are going add more operations from user space to
drop_monitor and these all need to be mutually exclusive.

Rename 'trace_state_mutex' to the more fitting 'net_dm_mutex' name and
document its scope.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/drop_monitor.c