bdev/nvme: Make sure the bdev/nvme increment by 1 for new inserted device.
Change-Id: I691bb567c9fbfdb7e41f5602fe58645f232a0ee8 Signed-off-by: Cunyin Chang <cunyin.chang@intel.com>
This commit is contained in:
parent
fcc2eec870
commit
01922c74d1
@ -589,7 +589,7 @@ attach_cb(void *cb_ctx, const struct spdk_nvme_transport_id *trid,
|
||||
}
|
||||
}
|
||||
} else {
|
||||
name = spdk_sprintf_alloc("HotInsertNvme%d", g_hot_insert_nvme_controller_index);
|
||||
name = spdk_sprintf_alloc("HotInsertNvme%d", g_hot_insert_nvme_controller_index++);
|
||||
}
|
||||
if (!name) {
|
||||
SPDK_ERRLOG("Failed to assign name to NVMe device\n");
|
||||
|
Loading…
Reference in New Issue
Block a user