+7
−0
Loading
We should always called the unregister callback on the same thread that spdk_bdev_unregister() was originally called. So save the thread pointer and use an spdk_thread_send_msg() to make sure it gets called on the correct thread when the unregister finishes. Also add unit test that reproduces the original issue. Fixes issue #2883. Signed-off-by:Jim Harris <james.r.harris@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16554 (master) (cherry picked from commit cf64422a) Change-Id: Ib3d89368aa358bc7a8db46a8a8cb6339340469d9 Signed-off-by:
Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16570 Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Tested-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com>