nvme: Move trid to "cold" spdk_nvme_ctrlr section

This field is not used in data path, so move it to "cold" data

Change-Id: I25f2fdb3aff613f9e16a2e13b2b06f8180a60fb2
Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/520
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Alexey Marchuk 2020-02-05 11:46:26 +03:00 committed by Tomasz Zawadzki
parent c3ba9127d0
commit 8c1859067f

View File

@ -642,8 +642,6 @@ struct spdk_nvme_ctrlr {
/** Array of namespaces indexed by nsid - 1 */
struct spdk_nvme_ns *ns;
struct spdk_nvme_transport_id trid;
uint32_t num_ns;
bool is_removed;
@ -671,6 +669,8 @@ struct spdk_nvme_ctrlr {
/* Cold data (not accessed in normal I/O path) is after this point. */
struct spdk_nvme_transport_id trid;
union spdk_nvme_cap_register cap;
union spdk_nvme_vs_register vs;
@ -703,7 +703,6 @@ struct spdk_nvme_ctrlr {
/** guards access to the controller itself, including admin queues */
pthread_mutex_t ctrlr_lock;
struct spdk_nvme_qpair *adminq;
/** shadow doorbell buffer */