Spdk/lib/event
Darek Stojaczyk f50d3d7759 reactor: pin spdk threads to their cores
We're about to drop legacy event messages from SPDK libs
and for that we'll replace various lcore numbers with
spdk_thread objects. For now SPDK libs can't spawn their
own threads, so they must use spdk_for_each_thread() and
spdk_get_thread() to retrieve different thread pointers.

The vhost library offers API to construct a vhost device
to be polled on specified cores, and in order to keep that
functionality we'll need to know which core each thread
is polling on. We would like to achieve that with
spdk_thread_get_cpumask(), but right now it always returns
all cores, so this patch changes it to return just
a single cpu on which the thread is actually pinned. It's
only a stop gap, eventually the vhost library will spawn
its own threads with custom cpumasks.

Change-Id: I15947727123c51b23f63727d52079770bfb2e07b
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/452204
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2019-05-02 17:06:34 +00:00
..
rpc rpc/notifications: add notification support to RPC client and SPDK host. 2019-04-09 23:01:52 +00:00
subsystems subsystem/nvmf: remove this redundant assert. 2019-05-02 15:12:46 +00:00
app.c reactor: pin spdk threads to their cores 2019-05-02 17:06:34 +00:00
json_config.c event: spdk_app_json_config_load no longer requires an event 2019-03-06 08:26:04 +00:00
json_config.h event: spdk_app_json_config_load no longer requires an event 2019-03-06 08:26:04 +00:00
Makefile app: add option to read json configuration files during startup 2019-01-14 04:48:18 +00:00
reactor.c reactor: pin spdk threads to their cores 2019-05-02 17:06:34 +00:00
rpc.c thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
subsystem.c event: spdk_subsystem_config_json is no longer asynchronous 2019-03-19 15:54:34 +00:00