+50
−14
Loading
The completion callback of `spdk_nvmf_subsystem_resume` and `spdk_nvmf_subsystem_pause` can run in different core other than the `vfu_ctx` core, this may lead to race condition when changing controller's state. Here we use a thread message to change it in the same thread context. Change-Id: I53d139adcca6ff72a3b91a2a931f1239f3271fa9 Signed-off-by:Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12558 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
John Levon <levon@movementarian.org> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>