Spdk/lib/thread
Mike Gerdts c9f3613fcd thread: detect spinlocks that are not initialized
If spdk_spin_lock() is called on an uninitialized spinlock, it will
deadlock. This commit detects whether a lock is initialized and aborts
instead of deadlocking.

Signed-off-by: Mike Gerdts <mgerdts@nvidia.com>
Change-Id: Ie7497633091edd4127c06ca0530e9a1dff530d1b
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16002
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2023-05-02 22:32:01 +00:00
..
iobuf.c thread: Move get/put calls into .c file 2023-04-06 20:16:49 +00:00
Makefile thread: Move iobuf code to a separate compilation unit. 2023-04-06 20:16:49 +00:00
spdk_thread.map thread: Move get/put calls into .c file 2023-04-06 20:16:49 +00:00
thread_internal.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
thread.c thread: detect spinlocks that are not initialized 2023-05-02 22:32:01 +00:00