nvmf_tgt: insert new subsystems at end of list

This keeps the existing subsystem list (and therefore the discovery
service log page) in order when new subsystems are added dynamically.

Change-Id: I071639be0fef4139f8f017b433185c786ae55378
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2016-12-13 12:29:14 -07:00
parent a9616e8497
commit ec591eaf41

View File

@ -183,7 +183,7 @@ spdk_nvmf_create_subsystem(const char *nqn,
subsystem->ops = &spdk_nvmf_virtual_ctrlr_ops;
}
TAILQ_INSERT_HEAD(&g_subsystems, subsystem, entries);
TAILQ_INSERT_TAIL(&g_subsystems, subsystem, entries);
return subsystem;
}