+22
−1
Loading
Add the flag, resched, to struct nvmf_lw_thread. Add an new function nvmf_request_spdk_thread_reschedule() to set the resched flag of the current thread to true. nvmf_reactor_run() checks the resched flag and call nvmf_schedule_spdk_thread() and clear it if it is true. Enable the thread operation SPDK_THREAD_OP_RESCHED and add nvmf_request_spdk_thread_reschedule() to the case of SPDK_THREAD_OP_RESCHED in nvmf_reactor_thread_op(). Following patch will add repeated calls to spdk_thread_set_cpumask() to exercise the feature. Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I60a4213c139b3e6f16ccb7065dea34ffe760de13 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2541 Community-CI: Mellanox Build Bot Community-CI: Broadcom CI Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com>