]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: add hostid token to fabric options
authorJohannes Thumshirn <jthumshirn@suse.de>
Tue, 20 Jun 2017 12:23:01 +0000 (14:23 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 28 Jun 2017 14:14:13 +0000 (08:14 -0600)
commit413afcb19de43f2aff9d7c415005b6726da01db7
tree205a61d4324468fa1003854aee1acdc7bc08455a
parente1b77923214742fb53fc2de2693dfda800ac0e66
nvme: add hostid token to fabric options

Currently we have no way to define a stable host-id but always use the one
which is randomly generated when we add the host or use the default host.

Provide a "hostid=%s" for user-space to pass in a persistent host-id which
overrides the randomly generated one.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/fabrics.c
drivers/nvme/host/fabrics.h