Spdk/test/unit/lib
Darek Stojaczyk ebb89b20ca nvme: detach PCI device in secondary process
We only detached the PCI device on the controller destruction,
which happens just once - in the primary process, but secondary
process needs the PCI detach as well.

Requesting to hotremove the NVMe PCIe controller in secondary
process is broken, because DPDK will still keep the device
reference and won't allow SPDK to hotplug it again.

Fix this by detaching the local PCI device whenever removing
a secondary process from spdk_nvme_ctrlr. This does require
an additional transport check in the generic NVMe layer, but
I found it an overkill to create a multi-process transport
abstraction just for this case.

Change-Id: I812dc1c878ade5b149556806228a2afcb49f0b17
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/431487 (master)
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/448364
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2019-03-22 08:16:19 +00:00
..
bdev crypto: add proper reset handling 2018-10-26 17:55:51 +00:00
blob blob: Remove snpashot from the list only on blob deletion 2018-12-14 17:59:20 +00:00
blobfs test/unit: fix scan-build errors in blobfs tests 2018-08-31 00:01:09 +00:00
event app: don't leak memory after failed arg parsing 2018-09-04 22:22:02 +00:00
ioat ut/ioat: drop legacy mocks 2018-07-03 16:29:42 +00:00
iscsi iscsi: do not caculate the CRC in multiple times 2018-12-05 00:36:40 +00:00
json json: add utilities function enabling itaration over JSON object 2018-10-18 16:07:37 +00:00
jsonrpc jsonrpc: call spdk_jsonrpc_free_request only from server thread 2018-08-13 20:01:07 +00:00
log ut/log: test print level set and get functions 2018-10-09 18:08:49 +00:00
lvol test/unit: fix Scan-build errors in lvol tests. 2018-08-31 19:09:07 +00:00
nvme nvme: detach PCI device in secondary process 2019-03-22 08:16:19 +00:00
nvmf lib/nvmf: add the nvmf qpair to the available poll group 2018-10-16 12:54:02 +00:00
scsi trace: add spdk_trace_record_tsc 2018-09-04 17:09:25 +00:00
sock sock: Update the spdk_sock_getaddr function. 2018-10-11 04:58:49 +00:00
thread thread: Add a name parameter to spdk_register_io_device 2018-09-05 16:00:54 +00:00
util bit_array: return UINT32_MAX if no cleared bits found 2018-10-08 17:03:33 +00:00
vhost ut/vhost: remove backend-specific tests 2018-07-03 22:18:57 +00:00
json_mock.c subsystem: add per module configuration dump 2018-03-23 02:47:40 -04:00
Makefile net: split sock abstraction into lib/sock 2018-06-22 17:09:57 +00:00