Spdk/lib/nvmf
Shuhei Matsumoto 2fa51eeb46 lib/nvmf: Make spdk_nvmf_poll_group_destroy() asynchronous
The next patch will create poll group threads dynamically for
NVMe-oF target, and will need to wait for completion of poll group and
I/O channel destroy. This is a preparation for the next patch.

Add callback function and its argument to spdk_nvmf_poll_group_destroy(),
and to struct spdk_nvmf_poll_group, respectively.

The callback has not only cb_arg but also status as its parameters even
if the next patch always sets the status to zero. The reason is to follow
spdk_nvmf_tgt_destroy's callback and to process any case that the status
is nonzero in future.

spdk_nvmf_poll_group_destroy() sets the passed callback to the passed
poll group.

Then spdk_nvmf_tgt_destroy_poll_group() calls the held callback in the
end.

This change will ensure all pollers are being unregistered and
all I/O channels are being released.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: Ifb854066a5259a6029d55b88de358e3346c63f18
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/495
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2020-03-17 08:49:00 +00:00
..
ctrlr_bdev.c nvmf: Move spdk_internal/nvmf.h to spdk/nvmf_cmd.h 2020-02-12 12:07:04 +00:00
ctrlr_discovery.c nvmf: remove redundant trid obj copy 2020-02-19 13:43:15 +00:00
ctrlr.c nvmf: implement controller reset for fabrics. 2020-02-25 10:32:30 +00:00
fc_ls.c lib/nvmf: get_transport now takes a string. 2020-01-16 09:10:38 +00:00
fc.c thread: remove io_channel.h public header 2020-03-10 09:12:53 +00:00
Makefile nvmf: Move custom admin command handler implementation to nvmf_tgt 2020-02-12 12:07:04 +00:00
nvmf_fc.h thread: remove io_channel.h public header 2020-03-10 09:12:53 +00:00
nvmf_internal.h nvmf: Add a transport notification when listeners are associated with 2020-03-10 09:12:29 +00:00
nvmf_rpc.c nvmf: Make spdk_nvmf_subsystem_add_listener asynchronous 2020-03-10 09:12:29 +00:00
nvmf.c lib/nvmf: Make spdk_nvmf_poll_group_destroy() asynchronous 2020-03-17 08:49:00 +00:00
rdma.c rdma: Update CQ error reporting 2020-03-17 08:23:13 +00:00
subsystem.c nvmf: Add a transport notification when listeners are associated with 2020-03-10 09:12:29 +00:00
tcp.c Revert "nvme/tcp: Change hdr in nvme_tcp_pdu to pointer" 2020-03-17 08:23:07 +00:00
transport.c nvmf: remove min number of admin queue entries from spec file 2020-03-12 09:04:18 +00:00
transport.h nvmf: move transport stop listen into public interface 2020-02-19 13:43:15 +00:00