accel: destroy g_stats_lock during finish
g_stats_lock is an spdk_spin_lock that is initialized as the module is loading. With this change, it is destroyed as the module finishes. Signed-off-by: Mike Gerdts <mgerdts@nvidia.com> Change-Id: I5263547f6d0e8981765d59665bd826cf07a6f83e Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17681 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
This commit is contained in:
parent
bade2d8db5
commit
b0c93eb3fb
@ -2460,6 +2460,7 @@ spdk_accel_module_finish(void)
|
||||
|
||||
if (!g_accel_module) {
|
||||
spdk_spin_destroy(&g_keyring_spin);
|
||||
spdk_spin_destroy(&g_stats_lock);
|
||||
accel_module_finish_cb();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user