Commit c60651e3 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Keith Busch

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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
parent a249d306
...@@ -109,8 +109,8 @@ struct nvmet_sq { ...@@ -109,8 +109,8 @@ struct nvmet_sq {
u32 sqhd; u32 sqhd;
bool sqhd_disabled; bool sqhd_disabled;
#ifdef CONFIG_NVME_TARGET_AUTH #ifdef CONFIG_NVME_TARGET_AUTH
struct delayed_work auth_expired_work;
bool authenticated; bool authenticated;
struct delayed_work auth_expired_work;
u16 dhchap_tid; u16 dhchap_tid;
u16 dhchap_status; u16 dhchap_status;
int dhchap_step; int dhchap_step;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment