Commit dcd73c6c authored by Konrad Sztyber's avatar Konrad Sztyber
Browse files

nvmf: stop mdns on target shutdown



It ensures that everything is cleaned up when mdns is enabled when
shutting down.

Fixes: #3469

Signed-off-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I1273629f20264e31b4994cef8b0295101156af1e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24410


Reviewed-by: default avatarTomasz Zawadzki <tomasz@tzawadzki.com>
Reviewed-by: default avatarKyuho Son <kyuho.son@samsung.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent c0c7cdb6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -457,6 +457,8 @@ nvmf_tgt_destroy_cb(void *io_device)
		free(referral);
	}

	nvmf_tgt_stop_mdns_prr(tgt);

	/* We will be freeing subsystems in this loop, so we always need to get the next one
	 * ahead of time, since we can't call get_next() on a subsystem that's been freed.
	 */