Commit 9f04ca41 authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Jim Harris
Browse files

nvmf_tgt: remove unused shutdown function



nvmf_tgt_shutdown_subsystem_by_nqn() used to be part of the
delete_nvmf_subsystem RPC method, but that now uses the public
spdk_nvmf_subsystem_stop() API instead.

nvmf_tgt_shutdown_subsystem_by_nqn() isn't used anywhere else, so just
remove it.

Change-Id: Ic4908d5c911915da6794c3e096e027e4c9b06a52
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/399511


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
parent 7ba8c006
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -110,21 +110,6 @@ nvmf_tgt_create_subsystem(const char *name, enum spdk_nvmf_subtype subtype, uint
	return subsystem;
}

int
nvmf_tgt_shutdown_subsystem_by_nqn(const char *nqn)
{
	struct spdk_nvmf_subsystem *subsystem;

	subsystem = spdk_nvmf_tgt_find_subsystem(g_tgt.tgt, nqn);
	if (!subsystem) {
		return -EINVAL;
	}

	spdk_nvmf_subsystem_destroy(subsystem);

	return 0;
}

static void
nvmf_tgt_poll_group_add(void *arg1, void *arg2)
{
+0 −3
Original line number Diff line number Diff line
@@ -93,9 +93,6 @@ struct spdk_nvmf_subsystem *spdk_nvmf_construct_subsystem(const char *name,
		int num_hosts, char *hosts[], bool allow_any_host,
		const char *sn, size_t num_ns, struct spdk_nvmf_ns_params *ns_list);

int
nvmf_tgt_shutdown_subsystem_by_nqn(const char *nqn);

int spdk_nvmf_tgt_start(struct spdk_app_opts *opts);

#endif