numam-spdk/lib
Shuhei Matsumoto 713aafbc10 lib/thread: Add spdk_thread_set_cpumask() and enum SPDK_THREAD_OP_RESCHED
Add an new API spdk_thread_set_cpumask() and enum SPDK_THREAD_OP_RESCHED.

spdk_thread_set_cpumask() can be called only from the current thread
and requires SPDK thread operation supports reschedule operation.

spdk_thread_set_cpumask() updates the cpumask of the current thread to
the specified value, and then invokes framework's reschedule operation
to the thread.

If spdk_thread_set_cpumask() calls multiple times in a single
spdk_thread_poll() context, the last value will be used in the
reschedule operation.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I7808626b10269543c1e2cd86793a504daa4b6389
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/499
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2020-02-27 10:14:23 +00:00
..
accel subsystem/accel: add entry point for .write_config_json 2020-02-18 08:05:34 +00:00
bdev vbdev: close the base bdev on its opened thread 2020-02-25 10:46:40 +00:00
blob lib/blob: queue up blob persists when one already is ongoing 2020-02-21 09:35:27 +00:00
blobfs blobfs: try to free a valid file cache buffer when allocating new caches 2020-02-21 01:28:43 +00:00
conf string: spdk_strtol to delegate additional error checking 2019-01-29 00:10:57 +00:00
env_dpdk memory: reverse the order of calling mem_map unregister cb 2020-02-17 10:05:10 +00:00
env_ocf lib/bdev/ocf: update of ocf library to version 19.06 2019-10-22 17:22:41 +00:00
event lib/event: Use spdk_thread_lib_init_ext() to initialize thread library 2020-02-27 10:14:23 +00:00
ftl lib/ftl: use scatter/gather write commands 2020-02-20 09:53:03 +00:00
ioat module/ioat: fix pci device cleanup on exit 2020-02-21 09:38:09 +00:00
iscsi lib/iscsi:break the loop in iscsi_parse_portal_grp() when the portal 2020-02-25 10:32:08 +00:00
json json_util: fix typo in debug message. 2019-05-31 14:39:53 +00:00
jsonrpc json: increase the json rpc client value limit 2019-11-18 13:16:49 +00:00
log lib/log: do not put trailing whitespace in fdump 2020-02-04 20:08:02 +00:00
log_rpc RPC: rename get_log_flags to log_get_flags 2019-09-24 16:42:41 +00:00
lvol lib/blob: store clear_method in per blob metadata 2020-01-20 09:57:16 +00:00
nbd rpc: Rename get_nbd_disks to nbd_get_disks 2019-09-19 20:56:35 +00:00
net net: add the check for the add and delete IP operation 2019-12-09 17:39:50 +00:00
notify RPC: rename get_notifications to notify_get_notifications 2019-09-24 16:42:41 +00:00
nvme nvme: set transport string before the probe based on transport type 2020-02-26 09:26:09 +00:00
nvmf nvmf: add const to nqn getters 2020-02-26 09:27:11 +00:00
reduce lib/reduce: move _alloc_zero_buf earlier in init stage. 2019-12-19 11:04:57 +00:00
rocksdb global: rename copy to accel 2020-02-18 08:05:34 +00:00
rpc RPC: properly set the address in error cases 2019-12-04 15:11:55 +00:00
rte_vhost vhost: make SPDK internal vhost library can work compatible with live recovery 2020-01-22 13:54:19 +00:00
scsi lib/scsi: Move scsi_task_free_data() in a file to remove function declaration 2019-11-21 08:01:29 +00:00
sock sock/posix: Block recursive calls to spdk_sock_flush 2020-01-30 10:22:20 +00:00
thread lib/thread: Add spdk_thread_set_cpumask() and enum SPDK_THREAD_OP_RESCHED 2020-02-27 10:14:23 +00:00
trace lib/trace: Don't initialize traces if requested num entries is 0 2020-02-10 10:23:53 +00:00
ut_mock test: Add mocks for sendmsg and recvmsg 2019-11-01 17:56:16 +00:00
util util/base64: Extend b64 decode to calculate exact len 2020-02-03 11:39:49 +00:00
vhost vhost: Fix the issue of virtual machine device parameter max_segments always equal to 1 2020-02-26 09:25:32 +00:00
virtio virtio_user: use correct #ifndef for the internal vhost.h header 2020-01-10 08:45:45 +00:00
vmd lib/vmd: detach devices during shutdown 2020-02-04 16:50:25 +00:00
Makefile global: rename copy to accel 2020-02-18 08:05:34 +00:00