diff options
author | Andrzej Hajda <andrzej.hajda@intel.com> | 2023-06-02 12:21:33 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-06-05 15:28:42 -0700 |
commit | 7a113ff6355944283402fb617dc97122f68d5a41 (patch) | |
tree | 43cf4ce7a6efb9d5672475efbd53b776d5ff0efa /lib/test_ref_tracker.c | |
parent | 7877cb91f1081754a1487c144d85dc0d2e2e7fc4 (diff) | |
download | linux-7a113ff6355944283402fb617dc97122f68d5a41.tar.gz linux-7a113ff6355944283402fb617dc97122f68d5a41.tar.bz2 linux-7a113ff6355944283402fb617dc97122f68d5a41.zip |
lib/ref_tracker: add unlocked leak print helper
To have reliable detection of leaks, caller must be able to check under
the same lock both: tracked counter and the leaks. dir.lock is natural
candidate for such lock and unlocked print helper can be called with this
lock taken.
As a bonus we can reuse this helper in ref_tracker_dir_exit.
Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/test_ref_tracker.c')
0 files changed, 0 insertions, 0 deletions