+40
−5
Loading
It is possible that nbd pthread is created but not executed, then spdk_nbd_stop is call before nbd_pthread's execution, but nbd pthread starts to execute while nbd is totally stopped. This patch can get spdk_stop_nbd aligned with nbd pthread. Change-Id: I57cc92b94d36cd706616c9058134f716f0812892 Signed-off-by:Liu Xiaodong <xiaodong.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6278 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
<dongx.yi@intel.com>