Loading
example/nvme_hotplug: Use spdk_nvme_detach_async()
We can add one or more ctrlrs to the existing detach context even after polling started as long as spdk_nvme_detach_poll_async() returns -EBUSY. By relying on this update, add a global variable g_detach_ctx and use it to aggregate multiple detachments. Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I28dcfa41daf1fe2bbe76fac80e1bc2abc24751f7 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8471 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com>