Spdk/test
Jim Harris e30535fecf thread: add spdk_thread_get_count()
This will return the number of currently allocated threads.

Modify the bdev_io caching code to use this new API since these
caches are really per-thread, not per-core.  SPDK does not support
dynamic threading yet, but once it does, we will want callers to be
using functions from the thread API - not counting the number of cores
allocated to the application.

spdk_env_get_core_count may still be useful as a helper function, so
it is still kept and not deprecated.  For example, app.c uses it to
print the number of cores allocated to the application.  bdevperf should
eventually be modified to use spdk_thread_get_count, but holding off on
that for now until spdk_event_allocate() uses threads instead of a reactor
lcore to specify where the event should be executed.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I5a30e3e825e6821da87d3927a2443768dfd740f4

Reviewed-on: https://review.gerrithub.io/414709
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Madhu Pai <mpai@netapp.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2018-06-13 00:38:41 +00:00
..
app Add copy module dependencies to Makefiles 2018-06-12 23:15:25 +00:00
bdev Add copy module dependencies to Makefiles 2018-06-12 23:15:25 +00:00
blobfs Add copy module dependencies to Makefiles 2018-06-12 23:15:25 +00:00
blobstore autotest_common.sh: move to test/common 2018-02-27 20:37:27 -05:00
common thread: add spdk_thread_get_count() 2018-06-13 00:38:41 +00:00
cpp_headers build: add @: to remaining 'all' targets 2018-02-14 17:38:25 -05:00
env env: add size parameter to spdk_mem_map_translate 2018-06-05 18:36:00 +00:00
event thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
ioat ioat: remove ioat kperf kernel driver test harness 2018-04-30 17:11:53 +00:00
iscsi_tgt copy/ioat: Change the default of IOAT from Enabled to Disabled 2018-06-12 17:41:29 +00:00
json_config test/json: Fix: Add missing function declaration 2018-05-30 17:28:57 +00:00
lvol test/lvol: Snapshot and clone consistency test 2018-05-29 16:28:40 +00:00
nvme nvme/overhead: fix segfault when no SSD found 2018-06-04 03:28:19 +00:00
nvmf test/nvmf: move multiconnection out of NIGHTLY_FAILING 2018-06-06 19:32:15 +00:00
pmem Fix up a few remaining "NVML" references 2018-05-24 22:53:06 +00:00
unit nvme: add Get/Set Feature wrappers with NSID 2018-06-12 17:59:33 +00:00
vhost copy/ioat: Change the default of IOAT from Enabled to Disabled 2018-06-12 17:41:29 +00:00
Makefile test: move lib/json up to test app directory 2018-03-29 00:31:24 -04:00
spdk_cunit.h scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00