ea1bfd84cd
Add two new helper functions, nvme_ctrlr_detach_async() and nvme_ctrlr_detach_poll_async() to make the internal of spdk_nvme_detach() asynchronous. Use callback function to remove controller from the attached list after completing shutdown and before freeing to avoid conflict between attach and detach. Update MOCKs in the corresponding unit test cases. The next patch will add two public APIs spdk_nvme_detach_async() and spdk_nvme_detach_poll_async() based on this patch. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Ifbdfec2a1facde9354007c6248f280e245a36eed Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4416 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jacek Kalwas <jacek.kalwas@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
nvme_ctrlr_cmd.c | ||
nvme_ctrlr_ocssd_cmd.c | ||
nvme_ctrlr.c | ||
nvme_cuse.c | ||
nvme_cuse.h | ||
nvme_fabric.c | ||
nvme_internal.h | ||
nvme_io_msg.c | ||
nvme_io_msg.h | ||
nvme_ns_cmd.c | ||
nvme_ns_ocssd_cmd.c | ||
nvme_ns.c | ||
nvme_opal_internal.h | ||
nvme_opal.c | ||
nvme_pcie.c | ||
nvme_poll_group.c | ||
nvme_qpair.c | ||
nvme_quirks.c | ||
nvme_rdma.c | ||
nvme_tcp.c | ||
nvme_transport.c | ||
nvme_uevent.c | ||
nvme_uevent.h | ||
nvme_zns.c | ||
nvme.c | ||
spdk_nvme.map |