[PATCH] nvmet: Add support for HOST_ID feature.

Sagi Grimberg sagi at grimberg.me
Mon Aug 28 06:43:31 PDT 2017


> diff --git a/drivers/nvme/target/nvmet.h b/drivers/nvme/target/nvmet.h
> index e3b244c..841f35d 100644
> --- a/drivers/nvme/target/nvmet.h
> +++ b/drivers/nvme/target/nvmet.h
> @@ -132,6 +132,7 @@ struct nvmet_ctrl {
>   
>   	char			subsysnqn[NVMF_NQN_FIELD_LEN];
>   	char			hostnqn[NVMF_NQN_FIELD_LEN];
> +	u64			host_id;

I'd move it to the first cacheline given it will be accessed
in the hot path.

Other than that, looks fine,

Reviewed-by: Sagi Grimberg <sagi at grimberg.me>



More information about the Linux-nvme mailing list