Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1687373 > unrolled thread

Re: [PATCH v3 3/3] nvmet: preserve controller serial number between reboots

Started byChristoph Hellwig <hch@lst.de>
First post2017-07-14 15:00 +0200
Last post2017-07-14 15:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v3 3/3] nvmet: preserve controller serial number         between reboots Christoph Hellwig <hch@lst.de> - 2017-07-14 15:00 +0200

#1687373 — Re: [PATCH v3 3/3] nvmet: preserve controller serial number between reboots

FromChristoph Hellwig <hch@lst.de>
Date2017-07-14 15:00 +0200
SubjectRe: [PATCH v3 3/3] nvmet: preserve controller serial number between reboots
Message-ID<u38mm-3Ag-19@gated-at.bofh.it>
> +	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>

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web