summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorKeith Busch2018-03-19 17:53:50 +0100
committerJens Axboe2018-03-26 16:53:43 +0200
commit2079699c10c8c60a9572540c2f77d045abf036eb (patch)
tree25e889ed724c69ee4a875c92966c0b5462b240e4 /kernel
parentnvme-rdma: Don't flush delete_wq by default during remove_one (diff)
downloadkernel-qcow2-linux-2079699c10c8c60a9572540c2f77d045abf036eb.tar.gz
kernel-qcow2-linux-2079699c10c8c60a9572540c2f77d045abf036eb.tar.xz
kernel-qcow2-linux-2079699c10c8c60a9572540c2f77d045abf036eb.zip
nvme: Skip checking heads without namespaces
If a task is holding a reference to a namespace on a removed controller, the head will not be released. If the same controller is added again later, its namespaces may not be successfully added. Instead, the user will see kernel message "Duplicate IDs for nsid <X>". This patch fixes that by skipping heads that don't have namespaces when considering if a new namespace is safe to add. Reported-by: Alex Gagniuc <Alex_Gagniuc@Dellteam.com> Cc: stable@vger.kernel.org Signed-off-by: Keith Busch <keith.busch@intel.com> Reviewed-by: Max Gurtovoy <maxg@mellanox.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions