]> asedeno.scripts.mit.edu Git - linux.git/commit
nvme: fix regression upon hot device removal and insertion
authorSagi Grimberg <sagi@grimberg.me>
Wed, 10 Jul 2019 16:31:31 +0000 (09:31 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 10 Jul 2019 16:36:16 +0000 (09:36 -0700)
commit420dc733f980246f2179e0144f9cedab9ad4a91e
treebc7212cd4ffbe70e7226b432ff12816f7ac7f478
parent4c73cbdff1119d088ed16d63def59ad32b11b18f
nvme: fix regression upon hot device removal and insertion

When we validate the new controller id, we want to skip
controllers that are either deleting or dead. Fix the check
to do that and not on the newly added controller.

Fixes: 1b1031ca63b2 ("nvme: validate cntlid during controller initialisation")
Reported-by: Jon Derrick <jonathan.derrick@intel.com>
Tested-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c