2fa51eeb46
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> |
||
---|---|---|
.. | ||
accel | ||
bdev | ||
blob | ||
ioat | ||
nvme | ||
nvmf | ||
sock | ||
vmd | ||
Makefile |