After carefully checking the code, spdk_nbd_stop should be called in the same spdk thread which creates the io_channel. Usually, the spdk thread which handles the rpc call should be same with the thread which finalizes the thread. But it could be different. So adding another async call to make sure we should call spdk_nbd_stop on the same spdk thread. Signed-off-by: Ziye Yang <ziye.yang@intel.com> Change-Id: I276eb35e78b930d31869f10137712a78aaee71ed Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5705 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: <dongx.yi@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> |
||
---|---|---|
.. | ||
Makefile | ||
nbd_internal.h | ||
nbd_rpc.c | ||
nbd.c | ||
spdk_nbd.map |