nvme: reorder nvme_controller for better packing
After converting is_resetting to bool, it is smaller and can be packed more efficiently with is_failed and reordered after the larger fields used in the I/O path. Change-Id: Ifa2301eb61ce8d38eb5412cca61d2a91b1474101 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
bc185fe7dc
commit
181de7bf79
@ -233,13 +233,14 @@ struct nvme_controller {
|
||||
/** I/O queue pairs */
|
||||
struct nvme_qpair *ioq;
|
||||
|
||||
bool is_resetting;
|
||||
|
||||
uint32_t num_ns;
|
||||
|
||||
/** Array of namespaces indexed by nsid - 1 */
|
||||
struct nvme_namespace *ns;
|
||||
|
||||
uint32_t num_ns;
|
||||
|
||||
bool is_resetting;
|
||||
|
||||
bool is_failed;
|
||||
|
||||
/* Cold data (not accessed in normal I/O path) is after this point. */
|
||||
|
||||
@ -262,8 +263,6 @@ struct nvme_controller {
|
||||
nvme_aer_cb_fn_t aer_cb_fn;
|
||||
void *aer_cb_arg;
|
||||
|
||||
bool is_failed;
|
||||
|
||||
/** guards access to the controller itself, including admin queues */
|
||||
nvme_mutex_t ctrlr_lock;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user