nvme: Move bools to fill hole

The two bools in nvme_request create a 6 byte hole today. Move them to
after retires to fill the 4 byte hole there and add a spare[2] to make
nvme_request 8 bytes smaller. spare[2] isn't strictly necessary, but
documents how many bytes we have left in that hole, as the number of
booleans will increase shortly.

Suggested by:		chuck
Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2023-08-08 10:55:43 -06:00
parent 3e1f69523b
commit 09c20a2932

View File

@ -119,11 +119,12 @@ struct nvme_request {
struct nvme_command cmd;
struct nvme_qpair *qpair;
struct memdesc payload;
bool payload_valid;
bool timeout;
nvme_cb_fn_t cb_fn;
void *cb_arg;
int32_t retries;
bool payload_valid;
bool timeout;
bool spare[2]; /* Future use */
STAILQ_ENTRY(nvme_request) stailq;
};