Revert "nvme: create 'slaves' and 'holders' entries for hidden controllers"
authorChristoph Hellwig <hch@lst.de>
Wed, 7 Mar 2018 13:13:58 +0000 (14:13 +0100)
committerKeith Busch <keith.busch@intel.com>
Wed, 7 Mar 2018 10:22:28 +0000 (03:22 -0700)
commit8a30ecc6e0ecbb9ae95daf499b2680b885ed0349
tree2e1df651309499d9e048d6439ea3e9092ae0701a
parent16ccfff2897613007b5eda9e29d65303c6280026
Revert "nvme: create 'slaves' and 'holders' entries for hidden controllers"

This reverts commit e9a48034d7d1318ece7d4a235838a86c94db9d68.

The slaves and holders link for the hidden gendisks confuse lsblk so that
it errors out on, or doesn't report the nvme multipath devices.  Given
that we don't need holder relationships for something that can't even be
directly accessed we should just stop creating those links.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Potnuri Bharat Teja <bharat@chelsio.com>
Cc: stable@vger.kernel.org
Signed-off-by: Keith Busch <keith.busch@intel.com>
drivers/nvme/host/core.c
drivers/nvme/host/multipath.c
drivers/nvme/host/nvme.h