Re: [PATCH v2 1/2] nvmet: Move serial number from controller to subsystem
From: Christoph Hellwig
Date: Fri Jul 14 2017 - 08:31:12 EST
> - /* generate a random serial number as our controllers are ephemeral: */
> - get_random_bytes(&ctrl->serial, sizeof(ctrl->serial));
> -
> kref_init(&ctrl->ref);
> ctrl->subsys = subsys;
>
> @@ -928,6 +925,7 @@ struct nvmet_subsys *nvmet_subsys_alloc(const char *subsysnqn,
> return NULL;
>
> subsys->ver = NVME_VS(1, 3, 0); /* NVMe 1.3.0 */
> + get_random_bytes(&subsys->serial, sizeof(subsys->serial));
This removes the comment, which I think is fairly useful.