301c5aeec9
DPDK intr thread is designed that it can't unregister the src callback in this callback handler. So I think we can't detach the PCI device in the hotremove callback as it needs to unregister the VFIO notification callback which will be not successful but it still can free the device. So at the next req notification in the handler function, we meet the freed device. Fix #994 Change-Id: Id4b45a2d0fe6b45b132355d59471bc80240fad70 Signed-off-by: Jin Yu <jin.yu@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/473176 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>