lib/ioat: Fix the error message when enabling ioat during application shutdown.
The printed error message could be the folowing example. Device 0000:00:04.0 is still attached at shutdown! Device 0000:00:04.1 is still attached at shutdown! Device 0000:00:04.2 is still attached at shutdown! Device 0000:00:04.3 is still attached at shutdown! Device 0000:00:04.4 is still attached at shutdown! Device 0000:00:04.5 is still attached at shutdown! Device 0000:00:04.6 is still attached at shutdown! Device 0000:00:04.7 is still attached at shutdown! Device 0000:80:04.0 is still attached at shutdown! Device 0000:80:04.1 is still attached at shutdown! Device 0000:80:04.2 is still attached at shutdown! Device 0000:80:04.3 is still attached at shutdown! Device 0000:80:04.4 is still attached at shutdown! Device 0000:80:04.5 is still attached at shutdown! Device 0000:80:04.6 is still attached at shutdown! Device 0000:80:04.7 is still attached at shutdown! I think this issue exists a long time in our CI pool. And the root cause is: "spdk_pci_device_detach" function is not called in "ioat_channel_destruct". This patch should solve this issue. Change-Id: I47b3f1104a407c5b8390c9389c2f231ae018d16a Signed-off-by: Ziye Yang <ziye.yang@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478837 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> Community-CI: SPDK CI Jenkins <sys_sgci@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
005d87ed4d
commit
7961de4341
@ -370,6 +370,8 @@ ioat_channel_destruct(struct spdk_ioat_chan *ioat)
|
||||
spdk_free((void *)ioat->comp_update);
|
||||
ioat->comp_update = NULL;
|
||||
}
|
||||
|
||||
spdk_pci_device_detach(ioat->device);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
x
Reference in New Issue
Block a user