diff options
author | 2020-03-26 11:37:11 -0700 | |
---|---|---|
committer | 2020-03-26 19:39:26 -0700 | |
commit | cf80faee79f98c0608a86e9006af57a99ffad650 (patch) | |
tree | 6d17125b463f634844a5f02773037b96d63dba1b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | devlink: trivial: fix tab in function documentation (diff) | |
download | wireguard-linux-cf80faee79f98c0608a86e9006af57a99ffad650.tar.xz wireguard-linux-cf80faee79f98c0608a86e9006af57a99ffad650.zip |
devlink: add function to take snapshot while locked
A future change is going to add a new devlink command to request
a snapshot on demand. This function will want to call the
devlink_region_snapshot_create function while already holding the
devlink instance lock.
Extract the logic of this function into a static function prefixed by
`__` to indicate that it is an internal helper function. Modify the
original function to be implemented in terms of the new locked
function.
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions