numam-spdk/lib/nvme
Liang Yan 8c71c208a2 nvme: check ctrlr process while get ctrlr data in hotplug function.
Fix issue #313.
For multi-process test scenarios, the secondary process may access
controller’s CSTS register in the shared ctrlr list. For this situation,
all the controllers are already in the primary shared ctrlr list, but
then each controller is added one by one in the secondary process, so the
secondary process may access CSTS before it is remapped for the BAR space.

In the rpc_config.sh test case, the spdk_nvme_ctrlr_get_regs_csts function
will be called in _nvme_pcie_hotplug_monitor function before calling
spdk_pci_nvme_device_attach. This step caused the secondary process iSCSI
Target access CSTS before it is remapped for the BAR space.

Change-Id: Ifd62c38adf8624f9877a9a2f965ca4db28839d99
Signed-off-by: Liang Yan <liang.z.yan@intel.com>
Reviewed-on: https://review.gerrithub.io/412594
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: GangCao <gang.cao@intel.com>
Reviewed-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2018-06-25 22:05:52 +00:00
..
Makefile ocssd: vector commands 2018-06-22 21:34:49 +00:00
nvme_ctrlr_cmd.c nvme: add Get/Set Feature wrappers with NSID 2018-06-12 17:59:33 +00:00
nvme_ctrlr_ocssd_cmd.c ocssd: check whether ctrlr support ocssd 2018-06-14 23:09:42 +00:00
nvme_ctrlr.c nvme: Allow calling spdk_nvme_ctrlr_set_default_opts prior to connect 2018-06-20 17:50:09 +00:00
nvme_internal.h nvme: Add a break to make error injection more efficient 2018-06-25 16:00:34 +00:00
nvme_ns_cmd.c nvme: add PI to spdk_nvme_ns_cmd_read/writev() 2018-06-12 17:40:32 +00:00
nvme_ns_ocssd_cmd.c ocssd: vector commands 2018-06-22 21:34:49 +00:00
nvme_ns.c nvme: update the NS identify data according to AER 2018-05-30 17:28:03 +00:00
nvme_pcie.c nvme: check ctrlr process while get ctrlr data in hotplug function. 2018-06-25 22:05:52 +00:00
nvme_qpair.c nvme: add nvme error injection support 2018-06-22 17:26:34 +00:00
nvme_quirks.c nvme: rename quirk from LIGHTNVM to OCSSD 2018-06-06 01:45:36 +00:00
nvme_rdma.c nvme/rdma: set timeout fields for RDMA requests 2018-06-21 16:46:51 +00:00
nvme_transport.c nvmf: Add Fibre Channel defs and usage to nvme lib 2018-06-22 21:09:09 +00:00
nvme_uevent.c util: add spdk_strerror() wrapper with TLS support 2018-01-04 15:00:09 -05:00
nvme_uevent.h nvme: Add support of hotplug for vfio-attached devices. 2017-12-06 17:04:49 -05:00
nvme.c nvmf: Add Fibre Channel defs and usage to nvme lib 2018-06-22 21:09:09 +00:00