Spdk/test/unit/lib/bdev
Mike Gerdts 8dbaca1300 bdev: use spinlock instead of mutex
SPDK threads generally run on dedicated cores and locks should be rarely
contended. Thus, putting a thread to sleep while waiting on a mutex does
not free up CPU cycles for other pthreads or processes. Even when
running in interrupt mode, lock contention should be low enough that
spinlocks are a net win by avoiding context switches.

Signed-off-by: Mike Gerdts <mgerdts@nvidia.com>
Change-Id: I6e2e78b2835bbadb56bbec34918d998d75280dfd
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15438
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2022-11-24 10:08:17 +00:00
..
bdev_zone.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
bdev.c bdev: use spinlock instead of mutex 2022-11-24 10:08:17 +00:00
compress.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
crypto.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
gpt update Intel copyright notices 2022-11-10 08:28:53 +00:00
mt include/bdev_module.h: add SPDK_ prefix to macros 2022-11-22 10:03:57 +00:00
nvme bdev_nvme_ut: add tests for UUID generation mechanism 2022-11-18 08:38:13 +00:00
part.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
pmem update Intel copyright notices 2022-11-10 08:28:53 +00:00
raid module/raid: remove destruct_called 2022-11-17 08:55:17 +00:00
scsi_nvme.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
vbdev_lvol.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
vbdev_zone_block.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00