nvmet: Move serial number from controller to subsystem
authorJohannes Thumshirn <jthumshirn@suse.de>
Fri, 14 Jul 2017 13:36:55 +0000 (15:36 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jul 2017 14:41:56 +0000 (08:41 -0600)
commit2e7f5d2af2155084c6f7c86328d36e698cd84954
treedf762b2b134f4e0e171fe1d3b13e2fbdb163e659
parent41528f8036f835e44884f4b0ce0d18191aa0a98f
nvmet: Move serial number from controller to subsystem

The NVMe specification defines the serial number as:

"Serial Number (SN): Contains the serial number for the NVM subsystem
that is assigned by the vendor as an ASCII string. Refer to section
7.10 for unique identifier requirements. Refer to section 1.5 for ASCII
string requirements"

So move it from the controller to the subsystem, where it belongs.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/admin-cmd.c
drivers/nvme/target/core.c
drivers/nvme/target/nvmet.h