Commit b0c93eb3 authored by Mike Gerdts's avatar Mike Gerdts Committed by Konrad Sztyber
Browse files

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: default avatarMike Gerdts <mgerdts@nvidia.com>
Change-Id: I5263547f6d0e8981765d59665bd826cf07a6f83e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17681


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@nvidia.com>
parent bade2d8d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}