diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2016-11-14 14:24:21 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-02-22 13:34:00 -0700 |
commit | 15fbad96fc5fb1c5a0502e6a10dea671f510de3d (patch) | |
tree | 8b6de472f9c5eb8a176fcad40310f1e4181349d0 /drivers/nvme/target/fabrics-cmd.c | |
parent | f64935abbfcedf47a23ad0345f625b1903d965d2 (diff) | |
download | linux-15fbad96fc5fb1c5a0502e6a10dea671f510de3d.tar.bz2 |
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>
Diffstat (limited to 'drivers/nvme/target/fabrics-cmd.c')
-rw-r--r-- | drivers/nvme/target/fabrics-cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/target/fabrics-cmd.c b/drivers/nvme/target/fabrics-cmd.c index f4088198cd0d..18dc314601c3 100644 --- a/drivers/nvme/target/fabrics-cmd.c +++ b/drivers/nvme/target/fabrics-cmd.c @@ -153,8 +153,8 @@ static void nvmet_execute_admin_connect(struct nvmet_req *req) goto out; } - pr_info("creating controller %d for NQN %s.\n", - ctrl->cntlid, ctrl->hostnqn); + pr_info("creating controller %d for subsystem %s for NQN %s.\n", + ctrl->cntlid, ctrl->subsys->subsysnqn, ctrl->hostnqn); req->rsp->result.u16 = cpu_to_le16(ctrl->cntlid); out: |