diff options
author | James Smart <jsmart2021@gmail.com> | 2019-09-03 14:20:37 -0700 |
---|---|---|
committer | Sagi Grimberg <sagi@grimberg.me> | 2019-09-12 08:50:45 -0700 |
commit | c26aa572027d438de9cc311aaebcbe972f698c24 (patch) | |
tree | 4da08a2ce4e9a53fcbbafabb1a09073d07745744 /block/blk.h | |
parent | 205da24343013e0bd62475800df79cd053f22326 (diff) | |
download | linux-c26aa572027d438de9cc311aaebcbe972f698c24.tar.bz2 |
nvme: Treat discovery subsystems as unique subsystems
Current code matches subnqn and collapses all controllers to the
same subnqn to a single subsystem structure. This is good for
recognizing multiple controllers for the same subsystem. But with
the well-known discovery subnqn, the subsystems aren't truly the
same subsystem. As such, subsystem specific rules, such as no
overlap of controller id, do not apply. With today's behavior, the
check for overlap of controller id can fail, preventing the new
discovery controller from being created.
When searching for like subsystem nqn, exclude the discovery nqn
from matching. This will result in each discovery controller being
attached to a unique subsystem structure.
Signed-off-by: James Smart <jsmart2021@gmail.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to 'block/blk.h')
0 files changed, 0 insertions, 0 deletions