Skip to content

Commit

Permalink
keymanager: fix deadlock in telemetry (#52)
Browse files Browse the repository at this point in the history
Fix a bug that results in a deadlock when querying the metrics of the
keymanager.

Co-authored-by: Fabio Streun <fabiostr@bluewin.ch>
  • Loading branch information
fstreun authored Sep 18, 2024
1 parent e79269f commit 8637764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keymanager.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ handle_dict_stats(const char *cmd __rte_unused, const char *params __rte_unused,
rte_tel_data_add_dict_uint(d, "entries_max",
rte_hash_max_key_id(tel_ctx->dict));

rte_spinlock_lock(&tel_ctx->management_lock);
rte_spinlock_unlock(&tel_ctx->management_lock);

return 0;
}
Expand Down

0 comments on commit 8637764

Please sign in to comment.