destruct_poller had been used to destruct ctrlr after completing reset, but we can remove destruct_poller and change reset processing to destruct ctrlr after its completion by itself. spdk_io_device_unregister() may fail spdk_for_each_channel(). Hence call nvme_bdev_ctrlr_do_destruct() as the completion function of spdk_for_each_channel(). The first idea was to always run destruct_poller at nvme_bdev_ctrlr_destruct(), but this patch will be simpler and more intuitive. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I43a400bdb67ab015d707fb9679693bd3d5bfb070 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5607 Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: <dongx.yi@intel.com> |
||
---|---|---|
.. | ||
.gitignore | ||
bdev_ocssd_ut.c | ||
Makefile |