+20
−2
Loading
To safely access the global pci device list on an spdk thread, we'll need not to modify this list on any other thread. When device gets hotplugged on a dpdk thread, it will be now inserted into a new global tailq that can be accessed only under g_pci_mutex. Then any subsequently called public pci function will add it to the regular device tailq. Change-Id: I9cb9d6b24fd731641fd764d0da71bedab38824c9 Signed-off-by:Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/458932 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>