OSDN Git Service

nvmet: Make cntlid globally unique
authorSagi Grimberg <sagi@grimberg.me>
Mon, 14 Nov 2016 12:24:21 +0000 (14:24 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 22 Feb 2017 20:34:00 +0000 (13:34 -0700)
commit15fbad96fc5fb1c5a0502e6a10dea671f510de3d
tree8b6de472f9c5eb8a176fcad40310f1e4181349d0
parentf64935abbfcedf47a23ad0345f625b1903d965d2
nvmet: Make cntlid globally unique

We usually log the cntlid which is confusing in case
we have multiple subsystems each with it's own cntlid ida.
Instead make cntlid ida globally unique and log the initial
association.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/target/core.c
drivers/nvme/target/fabrics-cmd.c
drivers/nvme/target/nvmet.h