examples/nvme/hotplug: vastly simplify and rewrite
This example should show how to use the hotplug features of the NVMe library API. It doesn't need to measure performance or allow lots of unrelated options. For now, the hotplug example will run everything (I/O and hotplug probes) on a single thread. The current code has lots of thread safety problems. A real application implementing hotplug would likely call spdk_nvme_probe() on one core and pass remove and add notifications to other cores via the event framework or another cross-thread synchronization mechanism. Change-Id: Id6df39812ef53383edc8ab9edb4cc3540fcb16c0 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
13827a74a8
commit
104356c97f