]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: expose cntlid in sysfs
authorMing Lin <ming.l@ssi.samsung.com>
Fri, 26 Feb 2016 21:24:19 +0000 (13:24 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:41:05 +0000 (13:41 -0700)
commite70ceaeebee4910ff6ce446c146964f91e84cd09
tree1e5ba90ed74557c7b6fe9c3c1b83a674303339b2
parent8dbc98ff0580207dd6932e3d518c8c29d9c1c83b
nvme: expose cntlid in sysfs

For NVMe over Fabrics, the cntlid will be used by systemd/udev to
create link to the device, for example,

/dev/disk/by-path/<fabrics-info>-<cntlid>-<namespace> -> /dev/nvme0n1

Signed-off-by: Ming Lin <ming.l@ssi.samsung.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit 931e1c2204c6d00c11c5c1e2e1c20b5ca41f292d)

Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h