515733ca4a
Add an unique ID for each created SPDK thread. Use a single 64 bits variable, g_thread_id, and guard its update by the global mutex g_devlist_mutex. For our safety, further thread creation is not allowed if g_thread_id rolls over, and request user to restart SPDK application. Besides, as a minor update, move the debug log down and add ID to it in spdk_thread_create(), and ID is added to thread_get_stats RPC and framework_get_reactors RPC. The thread ID will be used to set the cpumask of the running thread to the specified value in the subsequent patches. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Ic09f11d4c7175c3b89acba6a42e76063acd0d1a0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/498 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> |
||
---|---|---|
.. | ||
accel | ||
bdev | ||
blob | ||
blobfs | ||
env_dpdk | ||
event | ||
sock | ||
Makefile |