nvmet: Fix controller serial number inconsistency
authorSagi Grimberg <sagi@grimberg.me>
Thu, 4 Aug 2016 08:18:49 +0000 (11:18 +0300)
committerSagi Grimberg <sagi@grimberg.me>
Thu, 4 Aug 2016 14:45:10 +0000 (17:45 +0300)
commit28b89118539da03f4b188763e1b2fd1aec0f580a
tree2c004bc3fe811df5a1abf39771c82c9ef518c18c
parent40e64e07213201710a51e270595d6e6c028f9502
nvmet: Fix controller serial number inconsistency

The host is allowed to issue identify as many times
as it wants, we need to stay consistent when reporting
the serial number for a given controller.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/admin-cmd.c
drivers/nvme/target/core.c
drivers/nvme/target/nvmet.h