lkml.org 
[lkml]   [2017]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 3/3] nvmet: preserve controller serial number between reboots
> +	down_write(&nvmet_config_sem);
> subsys->ver = NVME_VS(1, 3, 0); /* NVMe 1.3.0 */
> /* generate a random serial number as our controllers are ephemeral: */
> get_random_bytes(&subsys->serial, sizeof(subsys->serial));
> + up_write(&nvmet_config_sem);

no need for the lock here, the subsystems isn't visible at this point.

Otherwise:

Reviewed-by: Christoph Hellwig <hch@lst.de>

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