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: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/399511 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
7ba8c006c5
commit
9f04ca414c
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user