nvme: add thread safety comment for spdk_nvme_probe()

Change-Id: I8460a6fddcf383781c520f36a08df1b0a802a709
Signed-off-by: GangCao <gang.cao@intel.com>
This commit is contained in:
GangCao 2016-11-23 21:13:35 -05:00 committed by Daniel Verkamp
parent ec71fa1aa5
commit 73e926f087

View File

@ -245,6 +245,12 @@ int spdk_nvme_discover(const struct spdk_nvme_discover_info *info,
* call but are no longer attached to the system. Optional; specify NULL if removal notices are not
* desired.
*
* This function is not thread safe and should only be called from one thread at a time while no
* other threads are actively using any NVMe devices.
*
* If called from a secondary process, only devices that have been attached to the userspace driver
* in the primary process will be probed.
*
* If called more than once, only devices that are not already attached to the SPDK NVMe driver
* will be reported.
*