summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/target/nvmet.h
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2023-05-01 14:40:25 +0200
committerKeith Busch <kbusch@kernel.org>2023-06-12 10:36:37 -0700
commitc60651e32f1e886cd85fd9f591ad2d8706173605 (patch)
tree2e5d65eff1e606ce7f303331bd2e91dce48571dc /drivers/nvme/target/nvmet.h
parenta249d3066de62ce2ed68fdf6445556658ecba222 (diff)
downloadlinux-stable-c60651e32f1e886cd85fd9f591ad2d8706173605.tar.gz
linux-stable-c60651e32f1e886cd85fd9f591ad2d8706173605.tar.bz2
linux-stable-c60651e32f1e886cd85fd9f591ad2d8706173605.zip
nvmet: reorder fields in 'struct nvmet_sq'
Group some variables based on their sizes to reduce holes. On x86_64, this shrinks the size of 'struct nvmet_sq' from 472 to 464 bytes when CONFIG_NVME_TARGET_AUTH is defined. This structure is embedded into some other structures, so it helps reducing their sizes as well. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/nvme/target/nvmet.h')
-rw-r--r--drivers/nvme/target/nvmet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/nvmet.h b/drivers/nvme/target/nvmet.h
index dc60a22646f7..6cf723bc664e 100644
--- a/drivers/nvme/target/nvmet.h
+++ b/drivers/nvme/target/nvmet.h
@@ -109,8 +109,8 @@ struct nvmet_sq {
u32 sqhd;
bool sqhd_disabled;
#ifdef CONFIG_NVME_TARGET_AUTH
- struct delayed_work auth_expired_work;
bool authenticated;
+ struct delayed_work auth_expired_work;
u16 dhchap_tid;
u16 dhchap_status;
int dhchap_step;