Actually, the error message caused by the function spdk_pci_device_detach(), after we
detach the device, we try to call the function
rte_eal_pci_probe_one(), but we do not have callback function for the dpdk nvme driver at
this point, so the error message show up,
but this function will add the device back to dpdk pci device list, then we could probe
the device next time when
we want to use it again. So it has no adverse effects but just one error message, but we
still trying to fix it now.
From: SPDK [mailto:email@example.com] On Behalf Of Freeman Zhang
Sent: Sunday, March 12, 2017 11:44 AM
Subject: [SPDK] "Requested device XXX cannot be used" warning in device detach
procedure may be misleading
I am a new user to spdk, I trapped in some confusing warnings recently.
This one is about "Requested device XXX cannot be used" printed at the end of
spdk/example/nvm/perf/perf execution. That seems to tell me: hey, your device doesn't
work with spdk... yes, even though you've got the perf results, but you'd better
not trust it!
After investigating the source code, I understand the last print of this warning appears
when spdk releases resources after all work is done. So I suppose it should say something
like "we are finishing using this device" instead. What do you think?
I also put this on github issues page
), but still think I can collect more ideas from
the mailing list.
All the best!