nvmf: Re-lookup sgroup after the array is realloc'd
Change-Id: I81c3f5725dc276717ab3d8316e393349b6a33134 Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.gerrithub.io/408251 Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
parent
1d94536417
commit
4149205c46
@ -630,6 +630,10 @@ spdk_nvmf_poll_group_resume_subsystem(struct spdk_nvmf_poll_group *group,
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* poll_group_update_subsystem may realloc the sgroups array. We need
|
||||
* to do a new lookup to get the correct pointer. */
|
||||
sgroup = &group->sgroups[subsystem->id];
|
||||
|
||||
sgroup->state = SPDK_NVMF_SUBSYSTEM_ACTIVE;
|
||||
|
||||
/* Release all queued requests */
|
||||
|
Loading…
x
Reference in New Issue
Block a user