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 <changpeng.liu@intel.com> Reviewed-on: https://review.gerrithub.io/403759 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
e134fa47c2
commit
998b961e75
@ -548,6 +548,7 @@ spdk_nvmf_poll_group_remove_subsystem(struct spdk_nvmf_poll_group *group,
|
|||||||
uint32_t nsid;
|
uint32_t nsid;
|
||||||
|
|
||||||
sgroup = &group->sgroups[subsystem->id];
|
sgroup = &group->sgroups[subsystem->id];
|
||||||
|
sgroup->state = SPDK_NVMF_SUBSYSTEM_INACTIVE;
|
||||||
|
|
||||||
for (nsid = 0; nsid < sgroup->num_channels; nsid++) {
|
for (nsid = 0; nsid < sgroup->num_channels; nsid++) {
|
||||||
if (sgroup->channels[nsid]) {
|
if (sgroup->channels[nsid]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user