lkml.org 
[lkml]   [2017]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 1/2] nvmet: Move serial number from controller to subsystem
> -	/* 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.

\
 
 \ /
  Last update: 2017-07-14 14:31    [W:0.062 / U:0.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site