From 998b961e750e18c596332e121f98541102f84350 Mon Sep 17 00:00:00 2001 From: Changpeng Liu Date: Tue, 20 Mar 2018 05:36:34 -0400 Subject: [PATCH] nvmf: set the subsystem state to inactive when removing it Since the function call will remove all the active I/O channels, the pollers don't need to submit all the pending I/O requests any more. Change-Id: I93e7b070f5c74b10f67bd1248fa515a29dca5620 Signed-off-by: Changpeng Liu Reviewed-on: https://review.gerrithub.io/403759 Tested-by: SPDK Automated Test System Reviewed-by: Ben Walker Reviewed-by: Daniel Verkamp --- lib/nvmf/nvmf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/nvmf/nvmf.c b/lib/nvmf/nvmf.c index 9fed08dfd..b9ef19ebd 100644 --- a/lib/nvmf/nvmf.c +++ b/lib/nvmf/nvmf.c @@ -548,6 +548,7 @@ spdk_nvmf_poll_group_remove_subsystem(struct spdk_nvmf_poll_group *group, uint32_t nsid; sgroup = &group->sgroups[subsystem->id]; + sgroup->state = SPDK_NVMF_SUBSYSTEM_INACTIVE; for (nsid = 0; nsid < sgroup->num_channels; nsid++) { if (sgroup->channels[nsid]) {