diff options
author | Ido Schimmel <[email protected]> | 2019-08-06 16:19:53 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-08-06 12:37:56 -0700 |
commit | 01921d53f870653f04ebf8d3c375029ee3ca4a31 (patch) | |
tree | d1513f72b5008b7de07d94ed3ee1be9e44ebdfaa /tools/perf/scripts/python/stat-cpi.py | |
parent | dbf896b70d4a4bdbd10aec060af42d7c70e6a88d (diff) |
drop_monitor: Document scope of spinlock
While 'per_cpu_dm_data' is a per-CPU variable, its 'skb' and
'send_timer' fields can be accessed concurrently by the CPU sending the
netlink notification to user space from the workqueue and the CPU
tracing kfree_skb(). This spinlock is meant to protect against that.
Document its scope and suppress the checkpatch message "spinlock_t
definition without comment".
Signed-off-by: Ido Schimmel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions